@@ -589,23 +589,22 @@ func (d *Driver) ControllerGetCapabilities(context.Context, *csi.ControllerGetCa
589
589
// CreateSnapshot is part of implementing Snapshot & Restore functionality, but we don't support that
590
590
func (d * Driver ) CreateSnapshot (ctx context.Context , req * csi.CreateSnapshotRequest ) (* csi.CreateSnapshotResponse , error ) {
591
591
return nil , status .Error (codes .Unimplemented , "" )
592
-
593
592
// TODO: Uncomment after client implementation is complete.
593
+ // snapshotName := req.GetName()
594
+ // sourceVolID := req.GetSourceVolumeId()
595
+ //
594
596
// 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 ).
597
599
// Msg("Request: CreateSnapshot")
598
600
//
599
- // if len(req.GetName() ) == 0 {
601
+ // if len(snapshotName ) == 0 {
600
602
// return nil, status.Error(codes.InvalidArgument, "Snapshot name is required")
601
603
// }
602
- // if len(req.GetSourceVolumeId() ) == 0 {
604
+ // if len(sourceVolID ) == 0 {
603
605
// return nil, status.Error(codes.InvalidArgument, "SourceVolumeId is required")
604
606
// }
605
607
//
606
- // snapshotName := req.GetName()
607
- // sourceVolID := req.GetSourceVolumeId()
608
- //
609
608
// log.Debug().
610
609
// Str("source_volume_id", sourceVolID).
611
610
// Msg("Finding current snapshot in Civo API")
0 commit comments