Merge pull request #6123 from AlanCoding/allow_templated_ct

Make Credential Type validator aware of `tower` var
This commit is contained in:
Alan Rominger
2017-04-28 09:23:51 -04:00
committed by GitHub

View File

@@ -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: