This commit is contained in:
Thomas Waldmann 2015-12-28 13:58:10 +01:00
parent 4f7627db91
commit 24cd954671

View File

@ -405,7 +405,7 @@ def _on_update_success(host, fqdn, kind, ipaddr, secure, logger):
ifid = IPAddress(ifid)
network = IPNetwork("%s/%d" % (ipaddr, netmask))
rh_ipaddr = str(IPAddress(network.network) + int(ifid))
except (IndexError, AddrFormatError) as e:
except (IndexError, AddrFormatError, ValueError) as e:
logger.warning("trouble computing address of related host %s [%s]" % (rh, e))
else:
if not _delete: