Skip to content

Commit 7f52cae

Browse files
tbugfindermetmajer
authored andcommitted
Pass multiple input files as array elements into terraform-docs (#3)
1 parent ce5bac8 commit 7f52cae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre_commit_hooks/terraform_inputs_jenkins_pipeline_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
def get_terraform_input_vars(terraform_files):
2121
try:
22-
raw_json = subprocess.check_output(['terraform-docs', '--no-sort', '--with-aggregate-type-defaults', 'json', ' '.join(terraform_files)])
22+
raw_json = subprocess.check_output(['terraform-docs', '--no-sort', '--with-aggregate-type-defaults', 'json'] + terraform_files)
2323
except subprocess.CalledProcessError:
2424
raw_json = '{ "Inputs": [] }'
2525

0 commit comments

Comments
 (0)