mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Set b_src to abspath of b_path so that symlinks work again. (#5678)
Fixes #5653
This commit is contained in:
parent
b1c6b9272f
commit
10f0d3ca95
1 changed files with 1 additions and 0 deletions
|
@ -238,6 +238,7 @@ def main():
|
|||
if follow and state == 'link':
|
||||
# use the current target of the link as the source
|
||||
src = to_native(os.path.realpath(b_path), errors='strict')
|
||||
b_src = to_bytes(os.path.realpath(b_path), errors='strict')
|
||||
else:
|
||||
module.fail_json(msg='src and dest are required for creating links')
|
||||
|
||||
|
|
Loading…
Reference in a new issue