diff options
author | Matt Wilson <msw@redhat.com> | 2000-01-11 22:49:12 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-01-11 22:49:12 +0000 |
commit | 49d9fa1ed6964fe7dd940af5de8c43530b467d8e (patch) | |
tree | 40f4e4b1d12f8653db099d6f5857973755e19f3e | |
parent | 83272e4dabe7e1d7a672b829fa0f4178aee83306 (diff) | |
download | anaconda-49d9fa1ed6964fe7dd940af5de8c43530b467d8e.tar.gz anaconda-49d9fa1ed6964fe7dd940af5de8c43530b467d8e.tar.xz anaconda-49d9fa1ed6964fe7dd940af5de8c43530b467d8e.zip |
1) fixed error check for rootpw
2) mouse command took extraneous kickstart option?!?
-rw-r--r-- | kickstart.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kickstart.py b/kickstart.py index 213ca87bb..a4778a821 100644 --- a/kickstart.py +++ b/kickstart.py @@ -17,7 +17,7 @@ class Kickstart(InstallClass): if (str == '--iscrypted'): isCrypted = 1 - if len(extra[0]) != 1: + if len(extra) != 1: raise ValueError, "a single argument is expected to rootPw" InstallClass.doRootPw(self, extra[0], isCrypted = isCrypted) @@ -219,8 +219,7 @@ class Kickstart(InstallClass): "sun" : "Sun - Mouse" } - (args, extra) = isys.getopt(args, '', [ 'device=', 'emulthree', - 'kickstart']) + (args, extra) = isys.getopt(args, '', [ 'device=', 'emulthree' ]) mouseType = "none" device = None emulThree = 0 |