fix environment populated detection

fixes #23764
This commit is contained in:
Brian Coca 2017-04-21 18:20:28 -04:00
parent 13c2c292f2
commit 27185f44b0

View file

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