Skip to content

Commit

Permalink
adding error print
Browse files Browse the repository at this point in the history
  • Loading branch information
nolan committed Jul 12, 2024
1 parent e2c60bb commit 941051a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gen-wiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,11 @@ def generate_markdown_table(header, data):

def run_terragrunt(directory):
try:
result = subprocess.run(['terragrunt', 'state', 'pull'], cwd=directory, check=True, capture_output=True, text=True)
result = subprocess.run(['terragrunt', 'state', 'pull', '--terragrunt-source-update'], cwd=directory, check=True, capture_output=True, text=True)
print(f"Directory = ", directory)
return result.stdout
except subprocess.CalledProcessError as e:
print(f"Error: ", e)
print(f"Error Directory = ", directory)
return None

def process_directory(directory, config):
Expand Down

0 comments on commit 941051a

Please sign in to comment.