From 27185f44b07558589819f55333eab40841e00be0 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 21 Apr 2017 18:20:28 -0400 Subject: [PATCH] fix environment populated detection fixes #23764 --- lib/ansible/plugins/action/raw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/raw.py b/lib/ansible/plugins/action/raw.py index cdafee34c6f..fa0263839f0 100644 --- a/lib/ansible/plugins/action/raw.py +++ b/lib/ansible/plugins/action/raw.py @@ -27,7 +27,7 @@ class ActionModule(ActionBase): if task_vars is None: task_vars = dict() - if self._task.environment: + if self._task.environment and any(self._task.environment) : self._display.warning('raw module does not support the environment keyword') result = super(ActionModule, self).run(tmp, task_vars)