1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 06:51:10 +03:00

don't inject custom extra_vars for inventory updates

see: https://github.com/ansible/awx/issues/1366
This commit is contained in:
Ryan Petrello 2018-02-27 16:10:23 -05:00
parent 6d7f60ea61
commit b9ab06734d

View File

@ -648,6 +648,8 @@ class CredentialType(CommonModelNameNotUnique):
env[env_var] = Template(tmpl).render(**namespace)
safe_env[env_var] = Template(tmpl).render(**safe_namespace)
if 'INVENTORY_UPDATE_ID' not in env:
# awx-manage inventory_update does not support extra_vars via -e
extra_vars = {}
safe_extra_vars = {}
for var_name, tmpl in self.injectors.get('extra_vars', {}).items():