Skip to content

Commit

Permalink
Don't wipefs a non existing device in the disk.lv linux unprovisioner
Browse files Browse the repository at this point in the history
  • Loading branch information
cvaroqui committed Sep 24, 2017
1 parent 4b30051 commit 8dc6260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/provDiskLvLinux.py
Expand Up @@ -87,7 +87,7 @@ def unprovisioner(self):
self.r.log.error("lvcreate command not found")
raise ex.excError

if which('wipefs'):
if which('wipefs') and os.path.exists(dev):
self.r.vcall(["wipefs", "-a", dev])

cmd = ["lvremove", "-f", dev]
Expand Down

0 comments on commit 8dc6260

Please sign in to comment.