From 4b7a783a54cbebcfcef5232c97d13818108bbbfa Mon Sep 17 00:00:00 2001 From: Tony Meyer Date: Thu, 28 Mar 2024 12:51:07 +1300 Subject: [PATCH] Update scenario/consistency_checker.py --- scenario/consistency_checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scenario/consistency_checker.py b/scenario/consistency_checker.py index d4a87bfb..a075f598 100644 --- a/scenario/consistency_checker.py +++ b/scenario/consistency_checker.py @@ -327,7 +327,7 @@ def check_storages_consistency( return Results(errors, []) -def _is_secret_identifier(value): +def _is_secret_identifier(value: str): """Return true iff the value is in the form `secret:{secret id}`.""" # cf. https://github.com/juju/juju/blob/13eb9df3df16a84fd471af8a3c95ddbd04389b71/core/secrets/secret.go#L48 return re.match(r"secret:[0-9a-z]{20}$", secret_id)