mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
Merge pull request #7068 from AlanCoding/nesting_err
fix double nesting of error message in dictionary
This commit is contained in:
commit
9f277e8acd
@ -1644,9 +1644,8 @@ class InventorySourceSerializer(UnifiedJobTemplateSerializer, InventorySourceOpt
|
||||
|
||||
def validate_source(self, value):
|
||||
if value == '':
|
||||
raise serializers.ValidationError(
|
||||
{"source": "Manual inventory sources are created automatically "
|
||||
"when a group is created in the v1 API."})
|
||||
raise serializers.ValidationError(_(
|
||||
"Manual inventory sources are created automatically when a group is created in the v1 API."))
|
||||
return value
|
||||
|
||||
def validate(self, attrs):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user