Skip to content

Commit b5280f7

Browse files
committed
bump + fix return values
1 parent 5523ab8 commit b5280f7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bin/tflocal

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -410,22 +410,22 @@ def _generate_s3_backend_config(backend_config: Dict) -> Tuple[Dict, str]:
410410
# Update with user-provided configs
411411
default_config.update(backend_config)
412412
# Generate config string
413-
config_options = ""
413+
config_string = ""
414414
for key, value in sorted(default_config.items()):
415415
if isinstance(value, bool):
416416
value = str(value).lower()
417417
elif isinstance(value, dict):
418418
if key == "endpoints" and is_tf_legacy:
419419
for legacy_endpoint, endpoint in legacy_endpoint_mappings.items():
420-
config_options += f'\n {legacy_endpoint} = "{default_config[key][endpoint]}"'
420+
config_string += f'\n {legacy_endpoint} = "{default_config[key][endpoint]}"'
421421
continue
422422
else:
423423
joined_values = "\n".join([f' {k} = "{v}"' for k, v in value.items()])
424424
value = textwrap.indent(
425425
text=f"{key} = {{\n{joined_values}\n}}",
426426
prefix=" " * 4,
427427
)
428-
config_options += f"\n{value}"
428+
config_string += f"\n{value}"
429429
continue
430430
elif isinstance(value, list):
431431
# TODO this will break if it's a list of dicts or other complex object
@@ -434,9 +434,9 @@ def _generate_s3_backend_config(backend_config: Dict) -> Tuple[Dict, str]:
434434
value = f"[{', '.join(as_string)}]"
435435
else:
436436
value = f'"{str(value)}"'
437-
config_options += f"\n {key} = {value}"
437+
config_string += f"\n {key} = {value}"
438438

439-
return config_options
439+
return default_config, config_string
440440

441441

442442
def check_override_file(providers_file: str) -> None:

0 commit comments

Comments
 (0)