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

View File

@@ -1886,6 +1886,8 @@ class PluginFileInjector(object):
else:
injector_env = self.get_script_env(inventory_update, private_data_dir, private_data_files)
env.update(injector_env)
# Preserves current behavior for Ansible change in default planned for 2.10
env['ANSIBLE_TRANSFORM_INVALID_GROUP_CHARS'] = 'never'
return env
def _get_shared_env(self, inventory_update, private_data_dir, private_data_files):