1
0
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:
Matthew Jones 2014-10-28 14:34:58 -04:00
parent 010e55289f
commit 098d4dc02e

View File

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