mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 14:41:23 -07: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':
|
if follow and state == 'link':
|
||||||
# use the current target of the link as the source
|
# use the current target of the link as the source
|
||||||
src = to_native(os.path.realpath(b_path), errors='strict')
|
src = to_native(os.path.realpath(b_path), errors='strict')
|
||||||
|
b_src = to_bytes(os.path.realpath(b_path), errors='strict')
|
||||||
else:
|
else:
|
||||||
module.fail_json(msg='src and dest are required for creating links')
|
module.fail_json(msg='src and dest are required for creating links')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue