Skip to content

Commit

Permalink
Fix order of function calls in gen-wiki.py
Browse files Browse the repository at this point in the history
  • Loading branch information
routel-nolan committed Dec 6, 2024
1 parent 5434279 commit b3e477a
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
Expand Up @@ -208,15 +208,15 @@ def copy_wiki(md_files):

args = parser.parse_args()

create_modules_documentation(args.output_dir)
md_files = list_md_files(args.output_dir)
config = load_config(args.config_file)
os.chdir("terraform/live")
directories = [d for d in os.listdir(os.getcwd()) if os.path.isdir(os.path.join(os.getcwd(), d))]
for directory in directories:
process_environment(directory, config, args.output_dir)
print("for loop ended")

md_files = list_md_files(args.output_dir)
os.chdir("../..")
create_modules_documentation(args.output_dir)
md_files += list_md_files(args.output_dir)
os.chdir("../..")
copy_wiki(md_files)

0 comments on commit b3e477a

Please sign in to comment.