diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-06-09 02:09:59 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-06-09 02:09:59 +0000 |
commit | a07f5437b137281121b3a150d572e9b7766a8f9e (patch) | |
tree | 04fbeeca1ce0277f93c21f12f375da202b3e54b8 | |
parent | 132c05457f480f696256c26b3d516742fb446369 (diff) | |
download | anaconda-a07f5437b137281121b3a150d572e9b7766a8f9e.tar.gz anaconda-a07f5437b137281121b3a150d572e9b7766a8f9e.tar.xz anaconda-a07f5437b137281121b3a150d572e9b7766a8f9e.zip |
make sure people specify a valid percentage
-rw-r--r-- | kickstart.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kickstart.py b/kickstart.py index 89b00ed30..5ed3c9927 100644 --- a/kickstart.py +++ b/kickstart.py @@ -709,6 +709,8 @@ 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: + raise ValueError, "Logical Volume percentage must be between 0 and 100 percent" if not name: raise RuntimeError, "Must specify a logical volume name" |