diff --git a/lib/ansible/plugins/action/copy.py b/lib/ansible/plugins/action/copy.py index 346e72de0fa..e18f6d754da 100644 --- a/lib/ansible/plugins/action/copy.py +++ b/lib/ansible/plugins/action/copy.py @@ -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