Skip to content

Commit d12f0e8

Browse files
committed
fix: variable definition position
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
1 parent 2901c38 commit d12f0e8

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

pkg/driver/controller_server.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -589,23 +589,22 @@ func (d *Driver) ControllerGetCapabilities(context.Context, *csi.ControllerGetCa
589589
// CreateSnapshot is part of implementing Snapshot & Restore functionality, but we don't support that
590590
func (d *Driver) CreateSnapshot(ctx context.Context, req *csi.CreateSnapshotRequest) (*csi.CreateSnapshotResponse, error) {
591591
return nil, status.Error(codes.Unimplemented, "")
592-
593592
// TODO: Uncomment after client implementation is complete.
593+
// snapshotName := req.GetName()
594+
// sourceVolID := req.GetSourceVolumeId()
595+
//
594596
// log.Info().
595-
// Str("snapshot_name", req.GetName()).
596-
// Str("source_volume_id", req.GetSourceVolumeId()).
597+
// Str("snapshot_name", snapshotName).
598+
// Str("source_volume_id", sourceVolID).
597599
// Msg("Request: CreateSnapshot")
598600
//
599-
// if len(req.GetName()) == 0 {
601+
// if len(snapshotName) == 0 {
600602
// return nil, status.Error(codes.InvalidArgument, "Snapshot name is required")
601603
// }
602-
// if len(req.GetSourceVolumeId()) == 0 {
604+
// if len(sourceVolID) == 0 {
603605
// return nil, status.Error(codes.InvalidArgument, "SourceVolumeId is required")
604606
// }
605607
//
606-
// snapshotName := req.GetName()
607-
// sourceVolID := req.GetSourceVolumeId()
608-
//
609608
// log.Debug().
610609
// Str("source_volume_id", sourceVolID).
611610
// Msg("Finding current snapshot in Civo API")

0 commit comments

Comments
 (0)