Set hostDir to None to skip cleanup

This commit is contained in:
Carl D. Roth
2016-05-23 17:23:36 -07:00
parent 660fb3a746
commit 912602b697

View File

@@ -260,7 +260,9 @@ class MountContext(SubprocessMixin):
cmd = ('umount', self.hostDir,)
self.check_call(cmd, vmode=self.V1)
self.rmdir(self.hostDir)
if self.hostDir is not None:
self.rmdir(self.hostDir)
return False
class BlkidEntry: