Skip to content

Commit 78de34d

Browse files
committed
cinder-csi-plugin: Don't set segment with empty topology value
This is actually handled by csi-provisioner, but it's arguably incorrect. Signed-off-by: Stephen Finucane <[email protected]>
1 parent 53a4505 commit 78de34d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/csi/cinder/controllerserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, igno
10801080
if accessibleTopologyReq != nil {
10811081
accessibleTopology = accessibleTopologyReq.GetPreferred()
10821082
}
1083-
} else {
1083+
} else if vol.AvailabilityZone != "" {
10841084
accessibleTopology = []*csi.Topology{
10851085
{
10861086
Segments: map[string]string{topologyKey: vol.AvailabilityZone},

0 commit comments

Comments
 (0)