From 329d8174fa7daf0b4b5d3b8e43007ada1537301a Mon Sep 17 00:00:00 2001 From: Lila Date: Tue, 22 Oct 2024 11:47:20 -0400 Subject: [PATCH] Add updated function return_inventory_source_options to validate_unified_job_template --- 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 8a91f2c124d2..a7c52ec85df5 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -5507,7 +5507,7 @@ def get_summary_fields(self, obj): return summary_fields def validate_unified_job_template(self, value): - if type(value) == InventorySource and value.source not in compute_cloud_inventory_sources(): + if type(value) == InventorySource and value.source not in return_inventory_source_options(): raise serializers.ValidationError(_('Inventory Source must be a cloud resource.')) elif type(value) == Project and value.scm_type == '': raise serializers.ValidationError(_('Manual Project cannot have a schedule set.'))