upload_secrets: call update_check directly without introspection

This commit is contained in:
Jörg Thalheim
2024-02-16 14:57:01 +01:00
parent 8eac6992c7
commit 052f040017

View File

@@ -15,9 +15,7 @@ def upload_secrets(machine: Machine) -> None:
secrets_module = importlib.import_module(machine.secrets_module)
secret_store = secrets_module.SecretStore(machine=machine)
update_check = getattr(secret_store, "update_check", None)
if callable(update_check):
if update_check():
if secret_store.update_check():
log.info("Secrets already up to date")
return
with TemporaryDirectory() as tempdir: