Remove KeyProperties property expect

This property is unused, so we can just remove it.

(cherry picked from commit ade333bb64)
This commit is contained in:
Matthijs Mekking 2025-10-01 16:35:20 +02:00
parent fb85075815
commit 5f70e40c9e

View file

@ -190,7 +190,6 @@ class KeyProperties:
@staticmethod
def default(with_state=True) -> "KeyProperties":
properties = {
"expect": True,
"private": True,
"legacy": False,
"role": "csk",
@ -544,9 +543,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.
@ -1515,7 +1511,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)