@@ -1059,12 +1059,12 @@ func getTopology(vol *volumes.Volume, topologyReq *csi.TopologyRequirement, igno
1059
1059
}
1060
1060
1061
1061
func getCreateVolumeResponse (vol * volumes.Volume , volCtx map [string ]string , accessibleTopology []* csi.Topology ) * csi.CreateVolumeResponse {
1062
- var volsrc * csi.VolumeContentSource
1062
+ var volSrc * csi.VolumeContentSource
1063
1063
1064
1064
if vol .SnapshotID != "" {
1065
1065
volCtx [ResizeRequired ] = "true"
1066
1066
1067
- volsrc = & csi.VolumeContentSource {
1067
+ volSrc = & csi.VolumeContentSource {
1068
1068
Type : & csi.VolumeContentSource_Snapshot {
1069
1069
Snapshot : & csi.VolumeContentSource_SnapshotSource {
1070
1070
SnapshotId : vol .SnapshotID ,
@@ -1076,7 +1076,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, acce
1076
1076
if vol .SourceVolID != "" {
1077
1077
volCtx [ResizeRequired ] = "true"
1078
1078
1079
- volsrc = & csi.VolumeContentSource {
1079
+ volSrc = & csi.VolumeContentSource {
1080
1080
Type : & csi.VolumeContentSource_Volume {
1081
1081
Volume : & csi.VolumeContentSource_VolumeSource {
1082
1082
VolumeId : vol .SourceVolID ,
@@ -1088,7 +1088,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, acce
1088
1088
if vol .BackupID != nil && * vol .BackupID != "" {
1089
1089
volCtx [ResizeRequired ] = "true"
1090
1090
1091
- volsrc = & csi.VolumeContentSource {
1091
+ volSrc = & csi.VolumeContentSource {
1092
1092
Type : & csi.VolumeContentSource_Snapshot {
1093
1093
Snapshot : & csi.VolumeContentSource_SnapshotSource {
1094
1094
SnapshotId : * vol .BackupID ,
@@ -1102,7 +1102,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, acce
1102
1102
VolumeId : vol .ID ,
1103
1103
CapacityBytes : int64 (vol .Size * 1024 * 1024 * 1024 ),
1104
1104
AccessibleTopology : accessibleTopology ,
1105
- ContentSource : volsrc ,
1105
+ ContentSource : volSrc ,
1106
1106
VolumeContext : volCtx ,
1107
1107
},
1108
1108
}
0 commit comments