Skip to content

Commit

Permalink
fix(general): remove limitation of resource and provider in tf.json f…
Browse files Browse the repository at this point in the history
…ile (#6133)

.
  • Loading branch information
lirshindalman committed Mar 31, 2024
1 parent ac4c655 commit e2b80e2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions checkov/terraform_json/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ def loads(file_path: Path) -> tuple[dict[str, Any], list[tuple[int, str]]]:

content = read_file_with_any_encoding(file_path=file_path)

if not all(key in content for key in ("resource", "provider")):
return {}, []

file_lines = [(idx + 1, line) for idx, line in enumerate(content.splitlines(keepends=True))]

template: "dict[str, Any] | list[dict[str, Any]]" = loader.loads(content=content)
Expand Down

0 comments on commit e2b80e2

Please sign in to comment.