File tree Expand file tree Collapse file tree
playbooks/robusta_playbooks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ class ProcessScanParams(ActionParams):
306306
307307@action
308308def process_scan (event : ExecutionBaseEvent , params : ProcessScanParams ):
309- if params .scan_type .lower != "krr" :
309+ if params .scan_type .lower () != "krr" :
310310 logging .warning (f"Processing scans not supported for type: { params .scan_type } " )
311311 return
312312 metadata : Dict [str , Any ] = {
@@ -321,10 +321,9 @@ def process_scan(event: ExecutionBaseEvent, params: ProcessScanParams):
321321 if isinstance (e , json .JSONDecodeError ):
322322 logging .exception ("*KRR scan job failed. Expecting json result.*" )
323323 elif isinstance (e , TypeError ):
324- logging .exception ("*KRR scan job failed.\n Error from KRR pod:\n {e }.*" )
324+ logging .exception (f "*KRR scan job failed.\n Error from KRR pod:\n { params . result } .*" )
325325 else :
326- logging .exception (f"*KRR scan job unexpected error.*\n { e } " )
327- logging .error (f"Logs: { params .result } " )
326+ logging .exception (f"*KRR scan job unexpected error.*\n { e } \n Returned result from KRR: { params .result } " )
328327 event .emit_event (
329328 "scan_updated" ,
330329 scan_id = params .scan_id ,
You can’t perform that action at this time.
0 commit comments