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

Script module should return changed attribute so handlers always fire, unless "changed_when" is specified.

Fixes #4053
This commit is contained in:
Michael DeHaan 2013-10-07 17:05:58 -04:00
parent a7adc8ef4d
commit 5ed28efe45

View file

@ -75,4 +75,6 @@ class ActionModule(object):
if tmp.find("tmp") != -1 and not C.DEFAULT_KEEP_REMOTE_FILES:
self.runner._low_level_exec_command(conn, 'rm -rf %s >/dev/null 2>&1' % tmp, tmp)
result.result['changed'] = True
return result