tiny fix to QubesBlockDeviceManager

This commit is contained in:
Agnieszka Kostrzewa 2012-02-09 08:33:28 +01:00
parent 43d479375a
commit 6aac5d8148

View File

@ -473,10 +473,10 @@ class QubesBlockDevicesManager():
self.current_attached[b] = att
self.devs_changed = True
for b in self.current_blk:
for b in self.current_blk: #remove devices that are not there anymore
if b not in blk:
del self.current_blk[b]
del current_attached[b]
del self.current_attached[b]
self.devs_changed = True
if self.devs_changed == True: