Skip to content

Commit

Permalink
removing useless import and adding folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
nolan committed Jul 25, 2024
1 parent f1532bb commit 1cdfe90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gen-wiki.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import os
import re
import yaml
import json
import boto3
import shutil
import argparse
import subprocess

Expand Down Expand Up @@ -120,8 +118,10 @@ def list_md_files(directory):
return md_files

def copy_wiki(md_files):
if not os.path.exists('temp_wiki/documentation/IaC'):
os.makedirs('temp_wiki/documentation/IaC')
for md_file in md_files:
subprocess.run(['cp', "terraform/live/" + md_file, 'temp_wiki'], check=True)
subprocess.run(['cp', "terraform/live/" + md_file, 'temp_wiki/documentation/IaC'], check=True)

if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Extract secrets using terragrunt state pull based on a YAML configuration.')
Expand Down

0 comments on commit 1cdfe90

Please sign in to comment.