Skip to content

Commit

Permalink
fix lint/code format issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
neerajtickoo committed Aug 19, 2024
1 parent 3e148ce commit 9e3e637
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions rpe/engines/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,14 @@ def evaluate(self, resource):
for policy_name, policy_cls in matched_policies.items():
try:
if hasattr(policy_cls, "should_evaluate_policy"):
should_evaluate_policy_res = policy_cls.should_evaluate_policy(resource)
should_evaluate_policy_res = policy_cls.should_evaluate_policy(
resource
)
if not should_evaluate_policy_res:
print(f"Policy: {policy_name}, will not be evaluated for resource {resource} "
f"as should_evaluate_policy returned {should_evaluate_policy_res}")
print(
f"Policy: {policy_name}, will not be evaluated for resource {resource} "
f"as should_evaluate_policy returned {should_evaluate_policy_res}"
)
continue

if hasattr(policy_cls, "evaluate"):
Expand Down

0 comments on commit 9e3e637

Please sign in to comment.