mirror of
https://github.com/ansible/awx.git
synced 2026-09-03 02:18:28 -02:30
support specifying multiple vault IDs for a playbook run
see: https://github.com/ansible/awx/issues/352
This commit is contained in:
@@ -415,6 +415,13 @@ class JSONSchemaField(JSONBField):
|
||||
return value
|
||||
|
||||
|
||||
@JSONSchemaField.format_checker.checks('vault_id')
|
||||
def format_vault_id(value):
|
||||
if '@' in value:
|
||||
raise jsonschema.exceptions.FormatError('@ is not an allowed character')
|
||||
return True
|
||||
|
||||
|
||||
@JSONSchemaField.format_checker.checks('ssh_private_key')
|
||||
def format_ssh_private_key(value):
|
||||
# Sanity check: GCE, in particular, provides JSON-encoded private
|
||||
|
||||
Reference in New Issue
Block a user