fix #223
This commit is contained in:
parent
4f7627db91
commit
24cd954671
@ -405,7 +405,7 @@ def _on_update_success(host, fqdn, kind, ipaddr, secure, logger):
|
|||||||
ifid = IPAddress(ifid)
|
ifid = IPAddress(ifid)
|
||||||
network = IPNetwork("%s/%d" % (ipaddr, netmask))
|
network = IPNetwork("%s/%d" % (ipaddr, netmask))
|
||||||
rh_ipaddr = str(IPAddress(network.network) + int(ifid))
|
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))
|
logger.warning("trouble computing address of related host %s [%s]" % (rh, e))
|
||||||
else:
|
else:
|
||||||
if not _delete:
|
if not _delete:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user