Skip to content

Commit

Permalink
Update scenario/consistency_checker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyandrewmeyer authored Mar 27, 2024
1 parent 92de04c commit bb93896
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scenario/consistency_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,8 @@ def check_storages_consistency(

def _is_secret_identifier(value):
"""Return true iff the value is in the form `secret:{secret id}`."""
if not value.startswith("secret:"):
return False
secret_id = value.split(":", 1)[1]
# cf. https://github.com/juju/juju/blob/13eb9df3df16a84fd471af8a3c95ddbd04389b71/core/secrets/secret.go#L48
return re.match(r"^[0-9a-z]{20}$", secret_id)
return re.match(r"secret:[0-9a-z]{20}$", secret_id)


def check_config_consistency(
Expand Down

0 comments on commit bb93896

Please sign in to comment.