mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
Unset unlinked_device_path after use
This commit is contained in:
parent
0c4ba09958
commit
801284cfec
1 changed files with 4 additions and 3 deletions
|
@ -138,8 +138,9 @@ class Volume(FSMProxy):
|
||||||
e (_e_obj): Event object containing arguments to create()
|
e (_e_obj): Event object containing arguments to create()
|
||||||
"""
|
"""
|
||||||
log_check_call(['dmsetup', 'remove', self.dm_node_name])
|
log_check_call(['dmsetup', 'remove', self.dm_node_name])
|
||||||
# Delete the no longer valid information
|
|
||||||
del self.dm_node_name
|
|
||||||
del self.dm_node_path
|
|
||||||
# Reset the device_path
|
# Reset the device_path
|
||||||
self.device_path = self.unlinked_device_path
|
self.device_path = self.unlinked_device_path
|
||||||
|
# Delete the no longer valid information
|
||||||
|
del self.unlinked_device_path
|
||||||
|
del self.dm_node_name
|
||||||
|
del self.dm_node_path
|
||||||
|
|
Loading…
Add table
Reference in a new issue