Fix link existence check.

If SR is not correctly installed, slapgrid complained that "file already exists". This is misleading error.
parent bfd9df0d
......@@ -326,7 +326,7 @@ class Partition(object):
)
def updateSymlink(self, sr_symlink, software_path):
if os.path.exists(sr_symlink):
if os.path.lexists(sr_symlink):
if not os.path.islink(sr_symlink):
self.logger.debug('Not a symlink: %s, has been ignored' % (sr_symlink))
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment