Fixing logic in template.py to not assume 'changed' is in the result
This commit is contained in:
parent
a78ed39f93
commit
034c766439
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ class ActionModule(ActionBase):
|
|||
else:
|
||||
result=dict(changed=True)
|
||||
|
||||
if result['changed'] and self._play_context.diff:
|
||||
if result.get('changed', False) and self._play_context.diff:
|
||||
result['diff'] = dict(before=dest_contents, after=resultant, before_header=dest, after_header=source)
|
||||
|
||||
return result
|
||||
|
|
Loading…
Reference in a new issue