From 332c802317da54e7ca3615f867f3ce00b9b02601 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Tue, 8 Sep 2020 10:30:10 -0400 Subject: [PATCH] Deal with missing HOME env var --- awx/main/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index c81900c9c6..b95015dc5c 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -1463,7 +1463,8 @@ class BaseTask(object): if containerized: # We don't want HOME passed through to container groups. - params['envvars'].pop('HOME') + # TODO: remove this conditional after everything is containerized + params['envvars'].pop('HOME', None) if isinstance(self.instance, AdHocCommand): params['module'] = self.build_module_name(self.instance)