summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-06-11 00:13:52 +0000
committerJeremy Katz <katzj@redhat.com>2002-06-11 00:13:52 +0000
commitf8e138b582d3a5a1d4e921269a5a09a10b580b9e (patch)
treeea69941d3e2b329b89572dc2a13964227985c372 /kickstart.py
parent3735aa60ae72c3012770c5884d6d2f11d718fc63 (diff)
downloadanaconda-f8e138b582d3a5a1d4e921269a5a09a10b580b9e.tar.gz
anaconda-f8e138b582d3a5a1d4e921269a5a09a10b580b9e.tar.xz
anaconda-f8e138b582d3a5a1d4e921269a5a09a10b580b9e.zip
don't enforce that 0<percent<=100 unless they specify a percent on the lvsize
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kickstart.py b/kickstart.py
index 5617e9794..1d06ce433 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -730,7 +730,7 @@ class KickstartBase(BaseInstallClass):
raise RuntimeError, "Must specify the volume group for the logical volume to be in"
if not size and not percent:
raise RuntimeError, "Must specify the size of a logical volume"
- if percent <= 0 or percent > 100:
+ if percent and percent <= 0 or percent > 100:
raise ValueError, "Logical Volume percentage must be between 0 and 100 percent"
if not name:
raise RuntimeError, "Must specify a logical volume name"