From f37a8381ecdd199737f14f7308a8d79ee0280dd4 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Sun, 14 Apr 2024 14:50:32 -0400 Subject: [PATCH] fix: update validation script for cloudflare tools check Signed-off-by: Devin Buhl --- bootstrap/scripts/validation.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bootstrap/scripts/validation.py b/bootstrap/scripts/validation.py index 8fecddfd..f0bd685a 100644 --- a/bootstrap/scripts/validation.py +++ b/bootstrap/scripts/validation.py @@ -87,12 +87,7 @@ def validate_cli_tools(distribution: str, cloudflare: dict, **_) -> None: for tool in TALOS_CLI_TOOLS if distribution in ["talos"] else []: if not which(tool): raise ValueError(f"Missing required CLI tool {tool}") - for tool in ( - CLOUDFLARE_TOOLS - if cloudflare.get("enabled", False) - and cast(dict, cloudflare.get("tunnel", {})).get("token", "") == "" - else [] - ): + for tool in CLOUDFLARE_TOOLS if cloudflare.get("enabled", False) else []: if not which(tool): raise ValueError(f"Missing required CLI tool {tool}")