mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 01:33:09 +00:00
Set b_src to abspath of b_path so that symlinks work again. (#5678)
Fixes #5653
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user