Commit 034c7664 by James Cammarata

Fixing logic in template.py to not assume 'changed' is in the result

parent a78ed39f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment