diff --git a/awx/api/serializers.py b/awx/api/serializers.py index c242cdee1f..4ce2658315 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -2163,7 +2163,7 @@ class InventorySourceSerializer(UnifiedJobTemplateSerializer, InventorySourceOpt cred ) if cred_error: - raise serializers.ValidationError({"detail": cred_error}) + raise serializers.ValidationError({"credential": cred_error}) return attrs