@@ -1037,12 +1037,12 @@ func (cs *controllerServer) ControllerExpandVolume(ctx context.Context, req *csi
1037
1037
}
1038
1038
1039
1039
func getCreateVolumeResponse (vol * volumes.Volume , volCtx map [string ]string , ignoreVolumeAZ bool , accessibleTopologyReq * csi.TopologyRequirement ) * csi.CreateVolumeResponse {
1040
- var volsrc * csi.VolumeContentSource
1040
+ var volSrc * csi.VolumeContentSource
1041
1041
1042
1042
if vol .SnapshotID != "" {
1043
1043
volCtx [ResizeRequired ] = "true"
1044
1044
1045
- volsrc = & csi.VolumeContentSource {
1045
+ volSrc = & csi.VolumeContentSource {
1046
1046
Type : & csi.VolumeContentSource_Snapshot {
1047
1047
Snapshot : & csi.VolumeContentSource_SnapshotSource {
1048
1048
SnapshotId : vol .SnapshotID ,
@@ -1054,7 +1054,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, igno
1054
1054
if vol .SourceVolID != "" {
1055
1055
volCtx [ResizeRequired ] = "true"
1056
1056
1057
- volsrc = & csi.VolumeContentSource {
1057
+ volSrc = & csi.VolumeContentSource {
1058
1058
Type : & csi.VolumeContentSource_Volume {
1059
1059
Volume : & csi.VolumeContentSource_VolumeSource {
1060
1060
VolumeId : vol .SourceVolID ,
@@ -1066,7 +1066,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, igno
1066
1066
if vol .BackupID != nil && * vol .BackupID != "" {
1067
1067
volCtx [ResizeRequired ] = "true"
1068
1068
1069
- volsrc = & csi.VolumeContentSource {
1069
+ volSrc = & csi.VolumeContentSource {
1070
1070
Type : & csi.VolumeContentSource_Snapshot {
1071
1071
Snapshot : & csi.VolumeContentSource_SnapshotSource {
1072
1072
SnapshotId : * vol .BackupID ,
@@ -1095,7 +1095,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, igno
1095
1095
VolumeId : vol .ID ,
1096
1096
CapacityBytes : int64 (vol .Size * 1024 * 1024 * 1024 ),
1097
1097
AccessibleTopology : accessibleTopology ,
1098
- ContentSource : volsrc ,
1098
+ ContentSource : volSrc ,
1099
1099
VolumeContext : volCtx ,
1100
1100
},
1101
1101
}
0 commit comments