From 17060f984977b59336a224858f7149d98350ad2c Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 24 Aug 2015 21:06:42 -0400 Subject: [PATCH] remove +1 from size that was cutting off first char of copied files when a recursive dir fixes #12055 --- lib/ansible/plugins/action/copy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/copy.py b/lib/ansible/plugins/action/copy.py index 8178d7eb0b2..3b2f8c5b0ba 100644 --- a/lib/ansible/plugins/action/copy.py +++ b/lib/ansible/plugins/action/copy.py @@ -97,7 +97,7 @@ class ActionModule(ActionBase): if os.path.isdir(source): # Get the amount of spaces to remove to get the relative path. if source_trailing_slash: - sz = len(source) + 1 + sz = len(source) else: sz = len(source.rsplit('/', 1)[0]) + 1