Skip to content

Commit

Permalink
fix: potential fix for #629
Browse files Browse the repository at this point in the history
  • Loading branch information
asabya committed May 14, 2024
1 parent 30ec757 commit a19abe4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/pod/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ func (p *Pod) ListPods() ([]string, []string, error) {
if err != nil { // skipcq: TCV-001
return nil, nil, err
}
err := p.storeUserPodsV2(podList)
if err != nil {
fmt.Println("error storing podsV2", err)
if len(podList.Pods) != 0 || len(podList.SharedPods) != 0 {
err := p.storeUserPodsV2(podList)
if err != nil {
fmt.Println("error storing podsV2", err)
}
}
}

Expand Down

0 comments on commit a19abe4

Please sign in to comment.