transform UnknownTSIGKey into DnsUpdateError, fixes #337
this exception is catched in nsupdate.api.views._update_or_delete.
This commit is contained in:
parent
917dacfceb
commit
133dd9fcba
@ -214,6 +214,8 @@ def update(fqdn, ipaddr, ttl=60):
|
|||||||
# maybe could be caused by secondary DNS Timeout and master still ok?
|
# maybe could be caused by secondary DNS Timeout and master still ok?
|
||||||
# assume the update is OK...
|
# assume the update is OK...
|
||||||
ok = True
|
ok = True
|
||||||
|
except dns.message.UnknownTSIGKey:
|
||||||
|
raise DnsUpdateError("UnknownTSIGKey")
|
||||||
if ok:
|
if ok:
|
||||||
# only send an update if the ip really changed as the update
|
# only send an update if the ip really changed as the update
|
||||||
# causes write I/O on the nameserver and also traffic to the
|
# causes write I/O on the nameserver and also traffic to the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user