We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c42e18 commit f39c2ddCopy full SHA for f39c2dd
pre_commit_hooks/check_iam.py
@@ -16,9 +16,9 @@ def main(argv: Sequence[str] | None = None) -> int:
16
for filename in args.filenames:
17
if filename == 'iam.tf':
18
continue
19
- with open(filename, 'rb') as f:
+ with open(filename, 'r') as f:
20
try:
21
- dict = hcl2.load(f)
+ data = hcl2.load(f)
22
except ValueError as exc:
23
print(f'{filename}: Failed to hcl decode ({exc})')
24
retval = 1
0 commit comments