mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 13:36:02 -03:30
Wrote corresponding tests.
Updated verbiage to be more in line with existing messages.
This commit is contained in:
@@ -2667,7 +2667,7 @@ class CredentialSerializer(BaseSerializer):
|
||||
def validate_inputs(self, inputs):
|
||||
if self.instance and self.instance.credential_type.kind == "vault":
|
||||
if 'vault_id' in inputs and inputs['vault_id'] != self.instance.inputs['vault_id']:
|
||||
raise ValidationError(_('We do not permit Vault IDs to be changed after they have been created.'))
|
||||
raise ValidationError(_('Vault IDs cannot be changed once they have been created.'))
|
||||
|
||||
return inputs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user