From 098d4dc02e913f19d1be5a9243e52efdbf321800 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 28 Oct 2014 14:34:58 -0400 Subject: [PATCH] Force stringify shell environment variables --- awx/main/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index bd9670b3a0..2b0b6dc062 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -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):