Set Ansible name transform setting for built-in sources

This is the current default but will change in the future
for these sources, we do not want behavior change
This commit is contained in:
AlanCoding
2019-03-28 10:37:30 -04:00
parent 9479b1b824
commit e84642b4a1
17 changed files with 34 additions and 15 deletions
-2
View File
@@ -1996,8 +1996,6 @@ class RunInventoryUpdate(BaseTask):
else:
env['ANSIBLE_INVENTORY_ENABLED'] = 'script'
# TODO: option for Automatic transformation of group names, ANSIBLE_TRANSFORM_INVALID_GROUP_CHARS
if inventory_update.source in ['scm', 'custom']:
for env_k in inventory_update.source_vars_dict:
if str(env_k) not in env and str(env_k) not in settings.INV_ENV_VARIABLE_BLACKLIST: