diff options
Diffstat (limited to 'partitions.py')
-rw-r--r-- | partitions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/partitions.py b/partitions.py index df2966971..dc6fa83db 100644 --- a/partitions.py +++ b/partitions.py @@ -246,8 +246,8 @@ class Partitions: self.addRequest(spec) for vg in lvm.partialvgs(): - spec = partRequests.PartialVolumeGroupRequestSpec(vgname = vg) - self.addRequest(spec) + spec = partRequests.PartialVolumeGroupSpec(vgname = vg) + self.addDelete(spec) lvm.vgdeactivate() @@ -471,8 +471,8 @@ class Partitions: def getPartialLVMRequests(self): """Return a list of all of the partial volume groups names.""" retval = [] - for request in self.requests: - if isinstance(request, partRequests.PartialVolumeGroupRequestSpec): + for request in self.deletes: + if isinstance(request, partRequests.PartialVolumeGroupSpec): retval.append(request.volumeGroupName) return retval |