Merge pull request #716 from mwhudson/fix-delete-raid
fix deleting preexisting raids
This commit is contained in:
commit
51e235d4a2
|
@ -484,7 +484,7 @@ class FilesystemController(SubiquityController):
|
|||
self.clear(raid)
|
||||
for p in list(raid.partitions()):
|
||||
self.delete_partition(p)
|
||||
for d in raid.devices | raid.spare_devices:
|
||||
for d in set(raid.devices) | set(raid.spare_devices):
|
||||
d.wipe = 'superblock'
|
||||
self.model.remove_raid(raid)
|
||||
|
||||
|
|
Loading…
Reference in New Issue