From 635aa7d8395859e9977efdb09be5aa033a7cbef9 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Fri, 3 Oct 2008 13:42:23 -0400 Subject: Correctly display the IP address a vnc viewer should connect to (#465353). --- vnc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vnc.py') 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. -- cgit