models:filesystem reset devices and info blocks
When we create virtual deviecs (raid, lvm and bcache) we store constructed info dictionaries; these must be removed when we reset the model state. Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
This commit is contained in:
parent
25c78ba9fd
commit
f7f817bab5
|
@ -138,6 +138,7 @@ class FilesystemModel(ModelPolicy):
|
|||
def reset(self):
|
||||
log.debug('FilesystemModel: resetting disks')
|
||||
self.devices = {}
|
||||
self.info = {}
|
||||
|
||||
def get_signal_by_name(self, selection):
|
||||
for x, y, z in self.get_signals():
|
||||
|
|
Loading…
Reference in New Issue