Skip to content

Commit

Permalink
PWX-38345: Put empty string check in volumeName while collecting the …
Browse files Browse the repository at this point in the history
…volumes for enumerate call in GetPodVolumes.
  • Loading branch information
diptiranjanpx committed Jul 29, 2024
1 parent c81f52d commit d8ea453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/volume/portworx/portworx.go
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ func (p *portworx) GetPodVolumes(podSpec *v1.PodSpec, namespace string, includeP
}
// If a volume is pending and WFFC, it doesn't exist in Portworx.
// No need of querying it.
if !isPendingWFFC {
if volumeName != "" && !isPendingWFFC {
volumeNameList = append(volumeNameList, volumeName)
}
}
Expand Down

0 comments on commit d8ea453

Please sign in to comment.