Merge pull request #716 from mwhudson/fix-delete-raid

fix deleting preexisting raids
This commit is contained in:
Michael Hudson-Doyle 2020-04-17 14:20:56 +12:00 committed by GitHub
commit 51e235d4a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -484,7 +484,7 @@ class FilesystemController(SubiquityController):
self.clear(raid) self.clear(raid)
for p in list(raid.partitions()): for p in list(raid.partitions()):
self.delete_partition(p) 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' d.wipe = 'superblock'
self.model.remove_raid(raid) self.model.remove_raid(raid)