mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix bug where we calculated the relative path of recurisive copies wrong
Fixes #11470
This commit is contained in:
parent
a1a8997e89
commit
3a4dd523d3
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ class ActionModule(ActionBase):
|
||||||
if os.path.isdir(source):
|
if os.path.isdir(source):
|
||||||
# Get the amount of spaces to remove to get the relative path.
|
# Get the amount of spaces to remove to get the relative path.
|
||||||
if source_trailing_slash:
|
if source_trailing_slash:
|
||||||
sz = len(source)
|
sz = len(source) + 1
|
||||||
else:
|
else:
|
||||||
sz = len(source.rsplit('/', 1)[0]) + 1
|
sz = len(source.rsplit('/', 1)[0]) + 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue