mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Make Credential Type validator aware of "tower" var
This commit is contained in:
@@ -733,6 +733,11 @@ class CredentialTypeInjectorField(JSONSchemaField):
|
|||||||
(field, 'EXAMPLE')
|
(field, 'EXAMPLE')
|
||||||
for field in model_instance.defined_fields
|
for field in model_instance.defined_fields
|
||||||
)
|
)
|
||||||
|
|
||||||
|
class TowerNamespace:
|
||||||
|
filename = None
|
||||||
|
|
||||||
|
valid_namespace['tower'] = TowerNamespace()
|
||||||
for type_, injector in value.items():
|
for type_, injector in value.items():
|
||||||
for key, tmpl in injector.items():
|
for key, tmpl in injector.items():
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user