Reworked fault handling a bit
This commit is contained in:
parent
4349512ef3
commit
d184777a1b
|
|
@ -18,7 +18,7 @@ class BlockDevice():
|
||||||
if not info:
|
if not info:
|
||||||
# If we don't give any information, we need to auto-fill it.
|
# If we don't give any information, we need to auto-fill it.
|
||||||
# Otherwise any subsequent usage will break.
|
# Otherwise any subsequent usage will break.
|
||||||
info = all_disks().get(path, {})
|
info = all_disks()[path].info
|
||||||
|
|
||||||
self.path = path
|
self.path = path
|
||||||
self.info = info
|
self.info = info
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue