From 3acd6f45194e6248518aee6d600798c8d0d57b4d Mon Sep 17 00:00:00 2001 From: jctanner Date: Mon, 21 Nov 2016 09:05:53 -0500 Subject: Set b_src to abspath of b_path so that symlinks work again. (#5678) Fixes #5653 --- files/file.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/file.py b/files/file.py index 25b00859..b7044ca2 100644 --- a/files/file.py +++ b/files/file.py @@ -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') -- cgit v1.2.1