diff --git a/bin/tests/system/ksr/tests_ksr.py b/bin/tests/system/ksr/tests_ksr.py index be2c651aa1..793df81c4c 100644 --- a/bin/tests/system/ksr/tests_ksr.py +++ b/bin/tests/system/ksr/tests_ksr.py @@ -113,9 +113,8 @@ def check_keys( created = key.get_timing("Created") + offset # active: retired previous key - if num == 0: - active = created - else: + active = created + if num > 0 and retired is not None: active = retired # published: dnskey-ttl + publish-safety + propagation