diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-09-02 19:26:25 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-09-02 19:26:25 +0000 |
commit | 8998d75cf772db18917cc7b5c9ef92e28faa69c1 (patch) | |
tree | a0bf3422a41db0c65f900f2dfbb260c9b4bb7522 | |
parent | 264d150fe85652de35c3585c13ab0ddfbe6a6136 (diff) | |
download | anaconda-8998d75cf772db18917cc7b5c9ef92e28faa69c1.tar.gz anaconda-8998d75cf772db18917cc7b5c9ef92e28faa69c1.tar.xz anaconda-8998d75cf772db18917cc7b5c9ef92e28faa69c1.zip |
get the ip address of the device directly so that things work if we're running
on a machine using dhcp that doesn't have reverse dns (#103371)
-rwxr-xr-x | anaconda | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -112,10 +112,13 @@ def startVNCServer(vncpassword=None, root='/', vncconnecthost=None, else: for dev in netinfo.netdevices.keys(): try: - ip = netinfo.netdevices[dev].get("ipaddr") - except: + ip = isys.getIPAddress(dev) + log("ip of %s is %s" %(dev, ip)) + except Exception, e: + log("Got an exception trying to get the ip addr of %s: " + "%s" %(dev, e)) continue - if ip == '127.0.0.1': + if ip == '127.0.0.1' or ip is None: continue srvname = ip break |