1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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: if task_vars is None:
task_vars = dict() 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') self._display.warning('raw module does not support the environment keyword')
result = super(ActionModule, self).run(tmp, task_vars) result = super(ActionModule, self).run(tmp, task_vars)