FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Design Team

 
 
LinkBack Thread Tools
 
Old 04-23-2012, 03:39 PM
Mark Hamzy
 
Default anaconda displays conflicting information when using vnc

https://bugzilla.redhat.com/show_bug.cgi?id=814402

Try using the network name of the displayed IP address rather than the
hostname.

---
pyanaconda/vnc.py | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/vnc.py b/pyanaconda/vnc.py
index 784d5f7..83e2f2f 100644
--- a/pyanaconda/vnc.py
+++ b/pyanaconda/vnc.py
@@ -98,9 +98,18 @@ class VncServer:
ips))
self.ip = ips[0]

- self.name = network.getDefaultHostname(self.anaconda)
ipstr = self.ip

+ try:
+ hinfo = socket.gethostbyaddr(ipstr)
+ except Exception as e:
+ log.debug("Exception caught trying to get host name of %s: %s" %
+ (ipstr, e))
+ self.name = network.getDefaultHostname(self.anaconda)
+ else:
+ if len(hinfo) == 3:
+ self.name = hinfo[0]
+
if self.ip.find(':') != -1:
ipstr = "[%s]" % (self.ip,)

--
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 04-23-2012, 04:26 PM
Will Woods
 
Default anaconda displays conflicting information when using vnc

On Mon, 2012-04-23 at 10:39 -0500, Mark Hamzy wrote:
> https://bugzilla.redhat.com/show_bug.cgi?id=814402
>
> Try using the network name of the displayed IP address rather than the
> hostname.

Looks totally reasonable to me - and I'm told this has been tested and
confirmed working, so ACK. I'll commit and push.

-w

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 11:54 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org