Skip to content

Commit

Permalink
Merge pull request #206 from 0xdabbad00/remove_prints
Browse files Browse the repository at this point in the history
revert recent bug fix
  • Loading branch information
0xdabbad00 committed Nov 8, 2021
2 parents 53b1242 + 0492e9e commit f46d89a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 35 deletions.
2 changes: 1 addition & 1 deletion parliament/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
This library is a linter for AWS IAM policies.
"""
__version__ = "1.5.1"
__version__ = "1.5.2"

import fnmatch
import functools
Expand Down
6 changes: 0 additions & 6 deletions parliament/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ def __init__(self, policy_json, filepath=None, config=None):
self.config = config if config else {}

def add_finding(self, finding, detail="", location={}):
print(type(location))
print(location)
print(type({}))
if type(location) == tuple and "jsoncfg.config_classes" in str(
type(location[1])
):
Expand All @@ -45,9 +42,6 @@ def add_finding(self, finding, detail="", location={}):
location_data["lineno"] = jsoncfg.node_location(location).line
location_data["column"] = jsoncfg.node_location(location).column
location = location_data

if type(location) != dict:
location = {'filepath': location}
if "filepath" not in location:
location["filepath"] = self.filepath
self._findings.append(Finding(finding, detail, location))
Expand Down
28 changes: 0 additions & 28 deletions tests/unit/test_usage.py

This file was deleted.

0 comments on commit f46d89a

Please sign in to comment.