Skip to content

Commit

Permalink
Merge e45ecea into a11482a
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthv committed Dec 5, 2014
2 parents a11482a + e45ecea commit 575a7da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/LVHDSR.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,9 @@ def delete(self, uuid):
try:
lvname = os.path.basename(fileName.replace('-','/').\
replace('//', '-'))
os.unlink(os.path.join(self.path, lvname))
lpath = os.path.join(self.path, lvname)
if os.path.lexists(lpath):
os.unlink(lpath)
except Exception, e:
util.SMlog("LVHDSR.delete: failed to remove the symlink for " \
"file %s. Error: %s" % (fileName, str(e)))
Expand Down

0 comments on commit 575a7da

Please sign in to comment.