Skip to content

Commit 87d670c

Browse files
committed
trivial: camelCase variable name
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
1 parent 91ba576 commit 87d670c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/csi/cinder/controllerserver.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,12 +1061,12 @@ func getTopology(vol *volumes.Volume, topologyReq *csi.TopologyRequirement, with
10611061
}
10621062

10631063
func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, accessibleTopology []*csi.Topology) *csi.CreateVolumeResponse {
1064-
var volsrc *csi.VolumeContentSource
1064+
var volSrc *csi.VolumeContentSource
10651065

10661066
if vol.SnapshotID != "" {
10671067
volCtx[ResizeRequired] = "true"
10681068

1069-
volsrc = &csi.VolumeContentSource{
1069+
volSrc = &csi.VolumeContentSource{
10701070
Type: &csi.VolumeContentSource_Snapshot{
10711071
Snapshot: &csi.VolumeContentSource_SnapshotSource{
10721072
SnapshotId: vol.SnapshotID,
@@ -1078,7 +1078,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, acce
10781078
if vol.SourceVolID != "" {
10791079
volCtx[ResizeRequired] = "true"
10801080

1081-
volsrc = &csi.VolumeContentSource{
1081+
volSrc = &csi.VolumeContentSource{
10821082
Type: &csi.VolumeContentSource_Volume{
10831083
Volume: &csi.VolumeContentSource_VolumeSource{
10841084
VolumeId: vol.SourceVolID,
@@ -1090,7 +1090,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, acce
10901090
if vol.BackupID != nil && *vol.BackupID != "" {
10911091
volCtx[ResizeRequired] = "true"
10921092

1093-
volsrc = &csi.VolumeContentSource{
1093+
volSrc = &csi.VolumeContentSource{
10941094
Type: &csi.VolumeContentSource_Snapshot{
10951095
Snapshot: &csi.VolumeContentSource_SnapshotSource{
10961096
SnapshotId: *vol.BackupID,
@@ -1104,7 +1104,7 @@ func getCreateVolumeResponse(vol *volumes.Volume, volCtx map[string]string, acce
11041104
VolumeId: vol.ID,
11051105
CapacityBytes: int64(vol.Size * 1024 * 1024 * 1024),
11061106
AccessibleTopology: accessibleTopology,
1107-
ContentSource: volsrc,
1107+
ContentSource: volSrc,
11081108
VolumeContext: volCtx,
11091109
},
11101110
}

0 commit comments

Comments
 (0)