ip = nic.ip
if ip is None: #Deactivated?
return False
- hostname = nic.machine.name
- if hostname is not None:
- hostname += ".servers.csail.mit.edu"
+ if nic.hostname and '.' in nic.hostname:
+ hostname = nic.hostname
+ elif nic.machine.name:
+ hostname = nic.machine.name + '.servers.csail.mit.edu'
+ else:
+ hostname = None
if ip is not None:
ip = ipv4(ip)
Log.Output(Log.debug,"dhcp_backend : Discover result = "+str(ip))