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

copy now passes a list of diffs

This commit is contained in:
Brian Coca 2015-08-16 02:18:32 -04:00
parent c3372936aa
commit 79ea6d3a1e

View file

@ -268,8 +268,8 @@ class ActionModule(ActionBase):
else:
result = dict(dest=dest, src=source, changed=changed)
if len(diffs) == 1:
result['diff'] = diffs[0]
if diffs:
result['diff'] = diffs
return result