diff options
author | jctanner <tanner.jc@gmail.com> | 2016-11-21 09:05:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-21 09:05:53 -0500 |
commit | 3acd6f45194e6248518aee6d600798c8d0d57b4d (patch) | |
tree | 1d4e438ffe5acbe4c9c56291676297bea21738b8 | |
parent | b3477690a3a5d5edd214e34053c4334602465fa4 (diff) | |
download | ansible-modules-core-3acd6f45194e6248518aee6d600798c8d0d57b4d.tar.gz |
Set b_src to abspath of b_path so that symlinks work again. (#5678)
Fixes #5653
-rw-r--r-- | files/file.py | 1 |
1 files changed, 1 insertions, 0 deletions
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') |