diff options
author | Chris Lumens <clumens@redhat.com> | 2006-11-06 15:51:26 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-11-06 15:51:26 +0000 |
commit | 2ab9a461df39aacce6b30c42d6e7fac2d8e666fb (patch) | |
tree | 469ef7a8d957b5c40fb8c3250772f9213251b7d1 /autopart.py | |
parent | 058448dcc2553c3d996d740742ede5037e7b0a18 (diff) | |
download | anaconda-2ab9a461df39aacce6b30c42d6e7fac2d8e666fb.tar.gz anaconda-2ab9a461df39aacce6b30c42d6e7fac2d8e666fb.tar.xz anaconda-2ab9a461df39aacce6b30c42d6e7fac2d8e666fb.zip |
Fix traceback when all space is in use (ddearauj AT us.ibm.com, #213616).
Diffstat (limited to 'autopart.py')
-rw-r--r-- | autopart.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/autopart.py b/autopart.py index 3916258a9..fda41912a 100644 --- a/autopart.py +++ b/autopart.py @@ -1398,13 +1398,15 @@ def doAutoPartition(anaconda): len(partitions.autoClearPartDrives) == 0): valid = 1 else: - for d in r.drive: - if d in partitions.autoClearPartDrives: - valid = 1 - break - - if not r.multidrive: - valid = 0 + if not isinstance(r, partRequests.RaidRequestSpec): + for d in r.drive: + if d in partitions.autoClearPartDrives: + valid = 1 + break + + if not isinstance(r, partRequests.RaidRequestSpec): + if not r.multidrive: + valid = 0 if valid: req.physicalVolumes.append(r.uniqueID) |