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.'))