Skip to content

Commit

Permalink
changes in trivy
Browse files Browse the repository at this point in the history
  • Loading branch information
Nithunikzz committed Sep 11, 2023
1 parent 085f528 commit 85dc5b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agent/kubviz/trivy.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ func RunTrivyK8sClusterScan(js nats.JetStreamContext) error {
if err != nil {
log.Printf("Error executing command: %v\n", err)
}
// Log the command output for debugging purposes
log.Printf("Command output: %s\n", out)
parts := strings.SplitN(out, "{", 2)
if len(parts) <= 1 {
log.Println("No output from k8s cluster scan command", err)
Expand Down

0 comments on commit 85dc5b0

Please sign in to comment.