mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-25 02:47:54 -04:00
Remove KeyProperties property expect
This property is unused, so we can just remove it.
This commit is contained in:
parent
0750603569
commit
ade333bb64
1 changed files with 0 additions and 5 deletions
|
|
@ -190,7 +190,6 @@ class KeyProperties:
|
|||
@staticmethod
|
||||
def default(with_state=True) -> "KeyProperties":
|
||||
properties = {
|
||||
"expect": True,
|
||||
"private": True,
|
||||
"legacy": False,
|
||||
"role": "csk",
|
||||
|
|
@ -552,9 +551,6 @@ class Key:
|
|||
"""
|
||||
Check the key with given properties.
|
||||
"""
|
||||
if not properties.properties["expect"]:
|
||||
return False
|
||||
|
||||
# Check file existence.
|
||||
# Noop. If file is missing then the get_metadata calls will fail.
|
||||
|
||||
|
|
@ -1523,7 +1519,6 @@ def policy_to_properties(ttl, keys: List[str]) -> List[KeyProperties]:
|
|||
count += 1
|
||||
line = key.split()
|
||||
keyprop = KeyProperties(f"KEY{count}", {}, {}, {})
|
||||
keyprop.properties["expect"] = True
|
||||
keyprop.properties["private"] = True
|
||||
keyprop.properties["legacy"] = False
|
||||
keyprop.properties["offset"] = timedelta(0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue