Skip to content

Commit

Permalink
fix: remove condition grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
lakkeger committed Sep 20, 2024
1 parent 3b20b3b commit 80f7a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/tflocal
Original file line number Diff line number Diff line change
Expand Up @@ -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"]):
Expand Down

0 comments on commit 80f7a85

Please sign in to comment.