Merge pull request #2459 from AlanCoding/old_cred_msg

Change key to match old error message
This commit is contained in:
Alan Rominger 2018-07-09 15:57:11 -04:00 committed by GitHub
commit c78e274373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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