From 3a4dd523d3649facc6d88d94cb67f5531a51af2a Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Mon, 27 Jul 2015 02:29:38 -0400 Subject: [PATCH] Fix bug where we calculated the relative path of recurisive copies wrong Fixes #11470 --- 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 715d883057..1474e476ca 100644 --- a/lib/ansible/plugins/action/copy.py +++ b/lib/ansible/plugins/action/copy.py @@ -90,7 +90,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) + sz = len(source) + 1 else: sz = len(source.rsplit('/', 1)[0]) + 1