@@ -1034,12 +1034,12 @@ func (cs *controllerServer) ControllerExpandVolume(ctx context.Context, req *csi
1034
1034
}
1035
1035
1036
1036
func getCreateVolumeResponse (vol * volumes.Volume , volCtx map [string ]string , ignoreVolumeAZ bool , accessibleTopologyReq * csi.TopologyRequirement ) * csi.CreateVolumeResponse {
1037
- var volsrc * csi.VolumeContentSource
1037
+ var volSrc * csi.VolumeContentSource
1038
1038
1039
1039
if vol .SnapshotID != "" {
1040
1040
volCtx [ResizeRequired ] = "true"
1041
1041
1042
- volsrc = & csi.VolumeContentSource {
1042
+ volSrc = & csi.VolumeContentSource {
1043
1043
Type : & csi.VolumeContentSource_Snapshot {
1044
1044
Snapshot : & csi.VolumeContentSource_SnapshotSource {
1045
1045
SnapshotId : vol .SnapshotID ,
@@ -1051,7 +1051,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, igno
1051
1051
if vol .SourceVolID != "" {
1052
1052
volCtx [ResizeRequired ] = "true"
1053
1053
1054
- volsrc = & csi.VolumeContentSource {
1054
+ volSrc = & csi.VolumeContentSource {
1055
1055
Type : & csi.VolumeContentSource_Volume {
1056
1056
Volume : & csi.VolumeContentSource_VolumeSource {
1057
1057
VolumeId : vol .SourceVolID ,
@@ -1063,7 +1063,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, igno
1063
1063
if vol .BackupID != nil && * vol .BackupID != "" {
1064
1064
volCtx [ResizeRequired ] = "true"
1065
1065
1066
- volsrc = & csi.VolumeContentSource {
1066
+ volSrc = & csi.VolumeContentSource {
1067
1067
Type : & csi.VolumeContentSource_Snapshot {
1068
1068
Snapshot : & csi.VolumeContentSource_SnapshotSource {
1069
1069
SnapshotId : * vol .BackupID ,
@@ -1092,7 +1092,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, igno
1092
1092
VolumeId : vol .ID ,
1093
1093
CapacityBytes : int64 (vol .Size * 1024 * 1024 * 1024 ),
1094
1094
AccessibleTopology : accessibleTopology ,
1095
- ContentSource : volsrc ,
1095
+ ContentSource : volSrc ,
1096
1096
VolumeContext : volCtx ,
1097
1097
},
1098
1098
}
0 commit comments