Merge pull request #231 from nsupdate-info/fix-211

fix #211
This commit is contained in:
TW 2015-12-28 13:10:26 +01:00
commit 98bcf1aced

View File

@ -339,7 +339,7 @@ def update_ns(fqdn, rdtype='A', ipaddr=None, action='upd', ttl=60):
logger.warning("timeout when performing %s for name %s and origin %s with rdtype %s and ipaddr %s" % ( logger.warning("timeout when performing %s for name %s and origin %s with rdtype %s and ipaddr %s" % (
action, name, origin, rdtype, ipaddr)) action, name, origin, rdtype, ipaddr))
set_ns_availability(domain, False) set_ns_availability(domain, False)
raise raise DnsUpdateError("Timeout")
except dns.tsig.PeerBadSignature: except dns.tsig.PeerBadSignature:
logger.error("PeerBadSignature - shared secret mismatch? zone: %s" % (origin, )) logger.error("PeerBadSignature - shared secret mismatch? zone: %s" % (origin, ))
set_ns_availability(domain, False) set_ns_availability(domain, False)