summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-11-03 21:09:08 +0000
committerChris Lumens <clumens@redhat.com>2005-11-03 21:09:08 +0000
commitfb569ae278858dd6a48e63bc8b63512e4571e1bc (patch)
tree99674d9243bd7bb5f5162da7cc6dbf44ad48ba22 /kickstart.py
parent0ea47539d67de4934f0fe4d8627315fcf8d84319 (diff)
downloadanaconda-fb569ae278858dd6a48e63bc8b63512e4571e1bc.tar.gz
anaconda-fb569ae278858dd6a48e63bc8b63512e4571e1bc.tar.xz
anaconda-fb569ae278858dd6a48e63bc8b63512e4571e1bc.zip
Check for None in sizes.
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kickstart.py b/kickstart.py
index ade97abe4..7610d9fef 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -336,7 +336,7 @@ class AnacondaKSHandlers(KickstartHandlers):
else:
filesystem = fileSystemTypeGetDefault()
- if pd.size == 0 and (pd.start == 0 and pd.end == 0) and pd.onPart == "":
+ if pd.size is None and (pd.start == 0 and pd.end == 0) and pd.onPart == "":
raise KickstartValueError, formatErrorMsg(self.lineno, msg="Partition requires a size specification")
if pd.start != 0 and pd.disk == "":
raise KickstartValueError, formatErrorMsg(self.lineno, msg="Partition command with start cylinder requires a drive specification")
@@ -349,7 +349,7 @@ class AnacondaKSHandlers(KickstartHandlers):
fslabel = pd.label,
bytesPerInode = pd.bytesPerInode)
- if pd.size != 0:
+ if pd.size is not None:
request.size = pd.size
if pd.start != 0:
request.start = pd.start