Fix test=True check for symlinks

This commit is contained in:
Thomas S Hatch 2013-03-07 23:42:15 -07:00
parent 90c5e2c6d9
commit 272657bd5c

View File

@ -351,7 +351,7 @@ def _symlink_check(name, target, force):
''' '''
Check the symlink function 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( return None, 'Symlink {0} to {1} is set for creation'.format(
name, target name, target
) )