Skip to content

Commit

Permalink
Fix bug where we calculated the relative path of recurisive copies wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
jimi-c committed Jul 27, 2015
1 parent a1a8997 commit 3a4dd52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/plugins/action/copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def run(self, tmp=None, task_vars=dict()):
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

Expand Down

0 comments on commit 3a4dd52

Please sign in to comment.