Skip to content

Commit

Permalink
Fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
abuabraham-ttd committed Dec 11, 2024
1 parent a4241fc commit 0bff456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/confidential_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def validate_operator_key():
operator_key = self.configs.get("api_token")
if not operator_key:
raise ValueError("API token is missing from the configuration.")
pattern = r"^(UID2|EUID)-.\-(I|P)-\d+-\*$"
pattern = r"^(UID2|EUID)-.\-(I|P)-\d+-.*$"
if re.match(pattern, operator_key):
env = self.configs.get("environment", "").lower()
debug_mode = self.configs.get("debug_mode", False)
Expand Down

0 comments on commit 0bff456

Please sign in to comment.