Skip to content

Commit

Permalink
Fix cluster allow_insecure
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Kurait <akurait@amazon.com>
  • Loading branch information
AndreKurait committed Jun 20, 2024
1 parent 6a31fab commit 11dc524
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Cluster:
aws_secret_arn: Optional[str] = None
auth_type: Optional[AuthMethod] = None
auth_details: Optional[Dict[str, Any]] = None
allow_insecure: bool = None

def __init__(self, config: Dict) -> None:
logger.info(f"Initializing cluster with config: {config}")
Expand All @@ -74,8 +75,7 @@ def __init__(self, config: Dict) -> None:
raise ValueError("Invalid config file for cluster", v.errors)

self.endpoint = config["endpoint"]
if self.endpoint.startswith("https"):
self.allow_insecure = config.get("allow_insecure", False)
self.allow_insecure = config.get("allow_insecure", False)
if 'no_auth' in config:
self.auth_type = AuthMethod.NO_AUTH
elif 'basic_auth' in config:
Expand Down

0 comments on commit 11dc524

Please sign in to comment.