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:
Mike Place 2016-06-24 10:05:25 -07:00 committed by GitHub
commit 805171c949

View File

@ -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: