From 26e6d74091f6a256da29b15bb4020e148374fa0b Mon Sep 17 00:00:00 2001 From: Neeraj Tickoo Date: Mon, 12 Aug 2024 14:40:51 -0500 Subject: [PATCH] Fix issue with fetching the attributes of the resource. Log the entire resource. --- rpe/engines/opa.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpe/engines/opa.py b/rpe/engines/opa.py index 11c4800..714ffa9 100644 --- a/rpe/engines/opa.py +++ b/rpe/engines/opa.py @@ -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 []