mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 14:19:59 -04:00
Update _check_dnskeys function
In the kasp system test there are cases that the SyncPublish is not set, nor it is required to do so. Update the _check_dnskeys function accordingly.
This commit is contained in:
parent
9cb287afa0
commit
0a6cc42914
1 changed files with 2 additions and 2 deletions
|
|
@ -856,9 +856,9 @@ def _check_dnskeys(dnskeys, keys, cdnskey=False):
|
|||
delete_md = f"Sync{delete_md}"
|
||||
|
||||
for key in keys:
|
||||
publish = key.get_timing(publish_md)
|
||||
publish = key.get_timing(publish_md, must_exist=False)
|
||||
delete = key.get_timing(delete_md, must_exist=False)
|
||||
published = now >= publish
|
||||
published = publish is not None and now >= publish
|
||||
removed = delete is not None and delete <= now
|
||||
|
||||
if not published or removed:
|
||||
|
|
|
|||
Loading…
Reference in a new issue