summaryrefslogtreecommitdiffstats
path: root/partitions.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-12-09 04:09:58 +0000
committerJeremy Katz <katzj@redhat.com>2004-12-09 04:09:58 +0000
commit56c7865cab3213cf951286576088585f48ae5b5d (patch)
treecdb3db3797ce4c7a11846de5fc9d091d03765b42 /partitions.py
parent2dfabf104014f128de0f2e4bde188bce4cd166b3 (diff)
downloadanaconda-56c7865cab3213cf951286576088585f48ae5b5d.tar.gz
anaconda-56c7865cab3213cf951286576088585f48ae5b5d.tar.xz
anaconda-56c7865cab3213cf951286576088585f48ae5b5d.zip
2004-12-08 Jeremy Katz <katzj@redhat.com>
* partitions.py (Partitions.setFromDisk): Adding as a request requires more bits, do as a delete (#142304) (Partitions.getPartialLVMRequests): Check deletes now * partRequests.py (PartialVolumeGroupRequestSpec): It's not really a RequestSpec, change accordingly.
Diffstat (limited to 'partitions.py')
-rw-r--r--partitions.py8
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