Skip to content

Commit

Permalink
Merge pull request #34271 from Unity-Technologies/hotfix/windows_syml…
Browse files Browse the repository at this point in the history
…inks

Fixed symlinks on windows where the slashes don't match
  • Loading branch information
Mike Place committed Jun 24, 2016
2 parents a09055c + e0a1a55 commit 805171c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/states/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 805171c

Please sign in to comment.