From 74796bd57bd9c511940a04e60b0e20d0a1734065 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 29 Jan 2019 18:29:07 +0530 Subject: [PATCH] Fix review comment Signed-off-by: Madhu Rajanna --- pkg/rbd/controllerserver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/rbd/controllerserver.go b/pkg/rbd/controllerserver.go index c69a6ccc4..334f2f3a0 100644 --- a/pkg/rbd/controllerserver.go +++ b/pkg/rbd/controllerserver.go @@ -155,7 +155,7 @@ func (cs *ControllerServer) CreateVolume(ctx context.Context, req *csi.CreateVol volSizeGB := int(rbdVol.VolSize / 1024 / 1024 / 1024) // Check if there is already RBD image with requested name - err = cs.checkrbdStatus(rbdVol, req, volSizeGB) + err = cs.checkRBDStatus(rbdVol, req, volSizeGB) if err != nil { return nil, err } @@ -178,7 +178,7 @@ func (cs *ControllerServer) CreateVolume(ctx context.Context, req *csi.CreateVol }, nil } -func (cs *ControllerServer) checkrbdStatus(rbdVol *rbdVolume, req *csi.CreateVolumeRequest, volSizeGB int) error { +func (cs *ControllerServer) checkRBDStatus(rbdVol *rbdVolume, req *csi.CreateVolumeRequest, volSizeGB int) error { var err error // Check if there is already RBD image with requested name found, _, _ := rbdStatus(rbdVol, rbdVol.UserID, req.GetSecrets()) // #nosec