Skip to content

Commit ddd7a30

Browse files
committed
fix: use Environment.StorageEndpointSuffix if not specified
fix
1 parent 64b8cf0 commit ddd7a30

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/blob/nodeserver.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@ func (d *Driver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRe
168168
}
169169

170170
if strings.TrimSpace(storageEndpointSuffix) == "" {
171-
storageEndpointSuffix = "core.windows.net"
171+
if d.cloud.Environment.StorageEndpointSuffix != "" {
172+
storageEndpointSuffix = d.cloud.Environment.StorageEndpointSuffix
173+
} else {
174+
storageEndpointSuffix = "core.windows.net"
175+
}
172176
}
173177

174178
if strings.TrimSpace(serverAddress) == "" {

0 commit comments

Comments
 (0)