+ 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
04-23-2012, 04:26 PM
Will Woods
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