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