From 79ea6d3a1ed4dd22040027316c9b1a2c39d486d4 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Sun, 16 Aug 2015 02:18:32 -0400 Subject: [PATCH] copy now passes a list of diffs --- lib/ansible/plugins/action/copy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/action/copy.py b/lib/ansible/plugins/action/copy.py index 346e72de0f..e18f6d754d 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