Merge pull request #314 from CanonicalLtd/mwhudson/wipe-superblock

set wipe: superblock on disks
This commit is contained in:
Michael Hudson-Doyle 2018-04-17 12:40:24 +12:00 committed by GitHub
commit 90c2142b5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -123,7 +123,7 @@ class Disk:
serial = attr.ib(default=None) serial = attr.ib(default=None)
path = attr.ib(default=None) path = attr.ib(default=None)
model = attr.ib(default=None) model = attr.ib(default=None)
wipe = attr.ib(default=None) wipe = attr.ib(default='superblock')
preserve = attr.ib(default=False) preserve = attr.ib(default=False)
name = attr.ib(default="") name = attr.ib(default="")
grub_device = attr.ib(default=False) grub_device = attr.ib(default=False)
@ -146,7 +146,6 @@ class Disk:
return d return d
def reset(self): def reset(self):
self.wipe = None
self.preserve = False self.preserve = False
self.name = '' self.name = ''
self.grub_device = '' self.grub_device = ''