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