Fixed noip exception.

This commit is contained in:
Joshua Harlow
2012-02-03 12:35:20 -08:00
parent bfbfc75eea
commit 2b97a7dee1

View File

@@ -128,8 +128,10 @@ def get_host_ip(def_net_ifcs, def_ip_version):
if ip:
break
if ip is None:
msg = "Your host does not have an ip address on interfaces: %s using ip version: %s!" % (def_net_ifcs.join(','), def_ip_version)
ifcs = ", ".join(def_net_ifcs)
msg = "Your host does not have an ip address on interfaces [%s] using ip version: %s!" % (ifcs, def_ip_version)
raise excp.NoIpException(msg)
return (ip, ifc)