From 80f7a855dd438cbc8393230a705e43461cb81162 Mon Sep 17 00:00:00 2001 From: lakkeger Date: Fri, 20 Sep 2024 10:05:57 +0200 Subject: [PATCH] fix: remove condition grouping --- bin/tflocal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tflocal b/bin/tflocal index a92e26e..779c7d7 100755 --- a/bin/tflocal +++ b/bin/tflocal @@ -272,7 +272,7 @@ def generate_s3_backend_config() -> str: print("Warning: Unsupported backend option(s) detected (`endpoints`). Please make sure you always use the corresponding options to your Terraform version.") exit(1) for legacy_endpoint, endpoint in legacy_endpoint_mappings.items(): - if legacy_endpoint in backend_config and (backend_config.get("endpoints") and endpoint in backend_config["endpoints"]): + if legacy_endpoint in backend_config and backend_config.get("endpoints") and endpoint in backend_config["endpoints"]: del backend_config[legacy_endpoint] continue if legacy_endpoint in backend_config and (not backend_config.get("endpoints") or endpoint not in backend_config["endpoints"]):