summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-09-02 19:26:25 +0000
committerJeremy Katz <katzj@redhat.com>2003-09-02 19:26:25 +0000
commit8998d75cf772db18917cc7b5c9ef92e28faa69c1 (patch)
treea0bf3422a41db0c65f900f2dfbb260c9b4bb7522
parent264d150fe85652de35c3585c13ab0ddfbe6a6136 (diff)
downloadanaconda-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-xanaconda9
1 files changed, 6 insertions, 3 deletions
diff --git a/anaconda b/anaconda
index 898b758e6..04437168d 100755
--- a/anaconda
+++ b/anaconda
@@ -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