diff options
Diffstat (limited to 'autopart.py')
-rw-r--r-- | autopart.py | 3 |
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 |