Skip to content

Commit

Permalink
Fix issue with fetching the attributes of the resource. Log the entir…
Browse files Browse the repository at this point in the history
…e resource.
  • Loading branch information
neerajtickoo committed Aug 12, 2024
1 parent adeeec4 commit 26e6d74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rpe/engines/opa.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ def evaluate(self, resource):
return [Evaluation(engine=self, resource=resource, **ev) for ev in evals]
except Exception as e:
print(
f"Exception during OPA eval. Resource Name: {resource.name}, Project: {resource.project_id}, "
f"location: {resource.location}. Exception Message: {str(e)}"
f"Exception during OPA eval. Resource: {str(resource)}. Exception Message: {str(e)}"
)

return []
Expand Down

0 comments on commit 26e6d74

Please sign in to comment.