mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 15:21:13 +03:00
Force stringify shell environment variables
This commit is contained in:
parent
010e55289f
commit
098d4dc02e
@ -1041,8 +1041,8 @@ class RunInventoryUpdate(BaseTask):
|
||||
pass
|
||||
elif inventory_update.source == 'custom':
|
||||
for env_k in inventory_update.source_vars_dict:
|
||||
if env_k not in os.environ:
|
||||
env[env_k] = unicode(inventory_update.source_vars_dict[env_k])
|
||||
if str(env_k) not in os.environ:
|
||||
env[str(env_k)] = unicode(inventory_update.source_vars_dict[env_k])
|
||||
return env
|
||||
|
||||
def build_args(self, inventory_update, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user