mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 22:18:01 -03:30
Merge pull request #6123 from AlanCoding/allow_templated_ct
Make Credential Type validator aware of `tower` var
This commit is contained in:
commit
0e2bf3486a
@ -733,6 +733,11 @@ class CredentialTypeInjectorField(JSONSchemaField):
|
||||
(field, 'EXAMPLE')
|
||||
for field in model_instance.defined_fields
|
||||
)
|
||||
|
||||
class TowerNamespace:
|
||||
filename = None
|
||||
|
||||
valid_namespace['tower'] = TowerNamespace()
|
||||
for type_, injector in value.items():
|
||||
for key, tmpl in injector.items():
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user