Skip to content

Commit 4407bdd

Browse files
fix vulnerabilities
1 parent 875d00d commit 4407bdd

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

bin/hcl2tojson

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This script recursively converts hcl2 files to json
44
55
Usage:
6-
hcl2tojson [-s] PATH [OUT_PATH] [--version]
6+
hcl2tojson [-s] PATH [OUT_PATH]
77
88
Options:
99
-s Skip un-parsable files
@@ -15,11 +15,10 @@ import json
1515
import os
1616
import sys
1717

18-
from lark import UnexpectedToken
19-
2018
from hcl2 import load
2119
from hcl2.parser import hcl2
2220
from hcl2.version import __version__
21+
from lark import UnexpectedToken
2322

2423
if __name__ == '__main__':
2524
parser = argparse.ArgumentParser(description='This script recursively converts hcl2 files to json')
@@ -45,7 +44,7 @@ if __name__ == '__main__':
4544
elif os.path.isdir(args.PATH):
4645
processed_files = set()
4746
if args.OUT_PATH is None:
48-
raise RuntimeError("Positional args.OUT_PATH parameter shouldn't be empty")
47+
raise RuntimeError("Positional OUT_PATH parameter shouldn't be empty")
4948
if not os.path.exists(args.OUT_PATH):
5049
os.mkdir(args.OUT_PATH)
5150
for current_dir, dirs, files in os.walk(args.PATH):

bin/terraform_test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Usage:
66
terraform_test.py [PATH]
77
88
Options:
9-
PATH The directory to check. Defaults to the TERRAFORM_CONFIG environment variable
9+
PATH The directory to check. Defaults to the TERRAFORM_CONFIG environment variable
10+
1011
"""
1112
import argparse
1213
import os

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)