Skip to content

Commit

Permalink
working dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
maorfr committed Jul 10, 2024
1 parent fa7a6c9 commit 18acaf6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions reconcile/utils/terrascript_aws_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4076,9 +4076,9 @@ def dump(
:return: key is AWS account name and value is directory location
"""
if existing_dirs is None:
working_dirs: dict[str, str] = {}
self.working_dirs: dict[str, str] = {}
else:
working_dirs = existing_dirs
self.working_dirs = existing_dirs

if print_to_file:
if is_file_in_git_repo(print_to_file):
Expand All @@ -4096,12 +4096,12 @@ def dump(
if existing_dirs is None:
wd = tempfile.mkdtemp(prefix=TMP_DIR_PREFIX)
else:
wd = working_dirs[name]
wd = self.working_dirs[name]
with open(wd + "/config.tf.json", "w", encoding="locale") as f:
f.write(content)
working_dirs[name] = wd
self.working_dirs[name] = wd

return working_dirs
return self.working_dirs

def terraform_configurations(self) -> dict[str, str]:
"""
Expand Down

0 comments on commit 18acaf6

Please sign in to comment.