mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 17:27:01 +00:00
Set hostDir to None to skip cleanup
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user