mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Fix test=True check for symlinks
This commit is contained in:
parent
90c5e2c6d9
commit
272657bd5c
@ -351,7 +351,7 @@ def _symlink_check(name, target, force):
|
||||
'''
|
||||
Check the symlink function
|
||||
'''
|
||||
if not os.path.exists(name):
|
||||
if not os.path.exists(name) and not os.path.islink(name):
|
||||
return None, 'Symlink {0} to {1} is set for creation'.format(
|
||||
name, target
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user