Correct "changed" to work with the latest ansible
This commit adds a check for "changed" in the return from the copy module. If the value is not possitive `rc['changed']` will be set with the constant "changed" from within the action plugin. Change-Id: Id65e6e57d174c4c25d99836b09ad049302d4e42c Signed-off-by: cloudnull <kevin@cloudnull.com>
This commit is contained in:
parent
f4b38b5987
commit
78bcedc36e
@ -831,8 +831,10 @@ class ActionModule(ActionBase):
|
||||
module_args=new_module_args,
|
||||
task_vars=task_vars
|
||||
)
|
||||
copy_changed = rc.get('changed')
|
||||
if not copy_changed:
|
||||
rc['changed'] = changed
|
||||
|
||||
rc['changed'] = changed
|
||||
if self._play_context.diff:
|
||||
rc['diff'] = []
|
||||
rc['diff'].append(
|
||||
|
Loading…
Reference in New Issue
Block a user