summaryrefslogtreecommitdiffstats
path: root/autopart.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-07-08 18:35:53 +0000
committerJeremy Katz <katzj@redhat.com>2005-07-08 18:35:53 +0000
commit226d9e304522a41df4c6d51d0ac1f010a3bad1e5 (patch)
tree9d6966a901525159e02fc390535fcf51fdea1241 /autopart.py
parentd8f94465a125d0effc700b99d3712800e9fc0560 (diff)
downloadanaconda-226d9e304522a41df4c6d51d0ac1f010a3bad1e5.tar.gz
anaconda-226d9e304522a41df4c6d51d0ac1f010a3bad1e5.tar.xz
anaconda-226d9e304522a41df4c6d51d0ac1f010a3bad1e5.zip
2005-07-08 Jeremy Katz <katzj@redhat.com>
* autopart.py (doAutoPartition): Fix from lxo for clearpart --none (#162445)
Diffstat (limited to 'autopart.py')
-rw-r--r--autopart.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/autopart.py b/autopart.py
index f66cd43bf..20c18a38a 100644
--- a/autopart.py
+++ b/autopart.py
@@ -1240,7 +1240,8 @@ def doAutoPartition(dir, diskset, partitions, intf, instClass, dispatch):
# XXX clearpartdrives is overloaded as drives we want to use for linux
drives = []
initial_free = findFreespace(diskset)
- for drive in partitions.autoClearPartDrives:
+ if partitions.autoClearPartDrives is not None:
+ for drive in partitions.autoClearPartDrives:
disk = diskset.disks[drive]
free = 0