summaryrefslogtreecommitdiffstats
path: root/vnc.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-10-03 13:42:23 -0400
committerChris Lumens <clumens@redhat.com>2008-10-03 13:42:23 -0400
commit635aa7d8395859e9977efdb09be5aa033a7cbef9 (patch)
tree84ad763d0749cf2f4758860f65d03da3bdc41046 /vnc.py
parent7a971c098374a2b961434c6a242aa86544ca808c (diff)
downloadanaconda-635aa7d8395859e9977efdb09be5aa033a7cbef9.tar.gz
anaconda-635aa7d8395859e9977efdb09be5aa033a7cbef9.tar.xz
anaconda-635aa7d8395859e9977efdb09be5aa033a7cbef9.zip
Correctly display the IP address a vnc viewer should connect to (#465353).
Diffstat (limited to 'vnc.py')
-rw-r--r--vnc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/vnc.py b/vnc.py
index c0dc83df1..b79945762 100644
--- a/vnc.py
+++ b/vnc.py
@@ -108,14 +108,14 @@ class VncServer:
dev = devices[list[0]]
try:
- self.ip = isys.getIPAddress(dev)
- log.info("ip of %s is %s" % (dev, self.ip))
+ self.ip = isys.getIPAddress(dev.get("DEVICE"))
+ log.info("ip of %s is %s" % (dev.get("DEVICE"), self.ip))
if self.ip == "127.0.0.1" or self.ip == "::1":
self.ip = None
except Exception, e:
log.warning("Got an exception trying to get the self.ip addr "
- "of %s: %s" % (dev, e))
+ "of %s: %s" % (dev.get("DEVICE"), e))
# If we have a real hostname that resolves against configured DNS
# servers, use that for the name to connect to.