From 2168ad32b67339c1f0d0f60a6ae4d439c5fbc810 Mon Sep 17 00:00:00 2001 From: Lila Yasin Date: Tue, 22 Oct 2024 12:58:47 -0400 Subject: [PATCH] Update awx/api/serializers.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) --- awx/api/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index a7c52ec85df5..dea202290c71 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -2326,7 +2326,7 @@ class Meta: def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) if 'source' in self.fields: - self.fields['source'].choices = return_inventory_source_options() or {} + self.fields['source'].choices = return_inventory_source_options() def get_related(self, obj): res = super(InventorySourceOptionsSerializer, self).get_related(obj)