Skip to content

Commit

Permalink
Pass multiple input files as array elements into terraform-docs (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbugfinder authored and metmajer committed Dec 3, 2018
1 parent ce5bac8 commit 7f52cae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

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

Expand Down

0 comments on commit 7f52cae

Please sign in to comment.