From e270db867221a24986d2dafc89f21619b1dbb1da Mon Sep 17 00:00:00 2001 From: Tony Meyer Date: Fri, 4 Oct 2024 18:22:06 +1300 Subject: [PATCH] Correct the key names for the Secret snapshot. --- scenario/state.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scenario/state.py b/scenario/state.py index 3520f34..b3b1927 100644 --- a/scenario/state.py +++ b/scenario/state.py @@ -1981,10 +1981,10 @@ def deferred(self, handler: Callable, event_id: int = 1) -> DeferredEvent: # Enforced by the consistency checker, but for type checkers: assert self.secret is not None snapshot_data.update( - {"secret_id": self.secret.id, "secret_label": self.secret.label}, + {"id": self.secret.id, "label": self.secret.label}, ) if self.name.endswith(("_remove", "_expired")): - snapshot_data["secret_revision"] = self.secret_revision + snapshot_data["revision"] = self.secret_revision elif self._is_action_event: # Enforced by the consistency checker, but for type checkers: