diff --git a/parliament/__init__.py b/parliament/__init__.py index e832eb9..18bbcfc 100644 --- a/parliament/__init__.py +++ b/parliament/__init__.py @@ -1,7 +1,7 @@ """ This library is a linter for AWS IAM policies. """ -__version__ = "0.4.13" +__version__ = "0.4.14" import os import json diff --git a/parliament/statement.py b/parliament/statement.py index 18d1136..3bde768 100644 --- a/parliament/statement.py +++ b/parliament/statement.py @@ -263,9 +263,13 @@ class Statement: findings = [] effect_allow = True stmt = None + policy_id = None _is_valid = True + def set_policy_identifier(self, policy_id): + self.policy_id = policy_id + def __init__(self, stmt, analyze=True): self.findings = [] self.stmt = stmt