@@ -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
442442def check_override_file (providers_file : str ) -> None :
0 commit comments