mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #34271 from Unity-Technologies/hotfix/windows_symlinks
Fixed symlinks on windows where the slashes don't match
This commit is contained in:
commit
805171c949
@ -900,7 +900,7 @@ def symlink(
|
||||
)
|
||||
if __salt__['file.is_link'](name):
|
||||
# The link exists, verify that it matches the target
|
||||
if __salt__['file.readlink'](name) != target:
|
||||
if os.path.normpath(__salt__['file.readlink'](name)) != os.path.normpath(target):
|
||||
# The target is wrong, delete the link
|
||||
os.remove(name)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user