change key to match old error message

This commit is contained in:
AlanCoding
2018-07-09 15:36:13 -04:00
parent 2dd3014374
commit e36458a6c0

View File

@@ -2163,7 +2163,7 @@ class InventorySourceSerializer(UnifiedJobTemplateSerializer, InventorySourceOpt
cred cred
) )
if cred_error: if cred_error:
raise serializers.ValidationError({"detail": cred_error}) raise serializers.ValidationError({"credential": cred_error})
return attrs return attrs