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:
Ryan Harper 2015-11-02 15:19:50 -06:00
parent 25c78ba9fd
commit f7f817bab5
1 changed files with 1 additions and 0 deletions

View File

@ -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():