mirror of
https://gitlab.isc.org/isc-projects/bind9.git
synced 2025-04-18 09:44:09 +03: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
@ -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…
x
Reference in New Issue
Block a user