diff options
author | Mike Fulbright <msf@redhat.com> | 2003-08-18 21:16:09 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-08-18 21:16:09 +0000 |
commit | 7e41815bfb935541c7b1abfbe2ea469572c24b09 (patch) | |
tree | 918716054a5234f72b90de2c8fa1f8414765f5e6 | |
parent | 5629d8f5f87f3a0ef9aa9807d6d771a0cd98412a (diff) | |
download | anaconda-7e41815bfb935541c7b1abfbe2ea469572c24b09.tar.gz anaconda-7e41815bfb935541c7b1abfbe2ea469572c24b09.tar.xz anaconda-7e41815bfb935541c7b1abfbe2ea469572c24b09.zip |
change to using --connect <host>[:<port>] format for vnc
-rw-r--r-- | kickstart.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kickstart.py b/kickstart.py index 22c9e6de1..10fd7ef81 100644 --- a/kickstart.py +++ b/kickstart.py @@ -1387,20 +1387,20 @@ def parseKickstartVNC(ksfile): except: raise RuntimeError, "Missing argument to vnc --password option" idx += 2 - elif args[idx] == "--connecthost": + elif args[idx] == "--connect": try: - vnchost = args[idx+1] + connectspec = args[idx+1] except: - raise RuntimeError, "Missing argument to vnc --connecthost option" - idx += 2 - elif args[idx] == "--connectport": - try: - vncport = args[idx+1] - except: - raise RuntimeError, "Missing argument to vnc --connectport option" + raise RuntimeError, "Missing argument to vnc --connect option" + cargs = string.split(connectspec, ":") + vnchost = cargs[0] + if len(cargs) > 1: + if len(cargs[1]) > 0: + vncport = cargs[1] + idx += 2 else: - raise RuntimeError, "Unknown vnc option %s" % (arg[idx],) + raise RuntimeError, "Unknown vnc option %s" % (args[idx],) usevnc = 1 break |