Skip to content

Commit 619aaec

Browse files
committed
fixup
1 parent 2cfb9ff commit 619aaec

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

pkg/azuredisk/controllerserver.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ func (d *Driver) ControllerModifyVolume(ctx context.Context, req *csi.Controller
551551
csiMC.ObserveWithLabels(isOperationSucceeded,
552552
"disk_sku", string(skuName))
553553
}()
554-
554+
555555
volumeID := req.GetVolumeId()
556556
if len(volumeID) == 0 {
557557
return nil, status.Error(codes.InvalidArgument, "Volume ID missing in the request")
@@ -647,7 +647,7 @@ func (d *Driver) ControllerPublishVolume(ctx context.Context, req *csi.Controlle
647647
csiMC.ObserveWithLabels(isOperationSucceeded,
648648
"caching_mode", string(cachingMode))
649649
}()
650-
650+
651651
diskURI := req.GetVolumeId()
652652
if len(diskURI) == 0 {
653653
return nil, status.Error(codes.InvalidArgument, "Volume ID not provided")
@@ -790,7 +790,7 @@ func (d *Driver) ControllerUnpublishVolume(ctx context.Context, req *csi.Control
790790
defer func() {
791791
csiMC.Observe(isOperationSucceeded)
792792
}()
793-
793+
794794
diskURI := req.GetVolumeId()
795795
if len(diskURI) == 0 {
796796
return nil, status.Error(codes.InvalidArgument, "Volume ID not provided")
@@ -1108,7 +1108,7 @@ func (d *Driver) ControllerExpandVolume(ctx context.Context, req *csi.Controller
11081108
defer func() {
11091109
csiMC.ObserveWithLabels(isOperationSucceeded, "disk_sku", diskSku)
11101110
}()
1111-
1111+
11121112
if len(req.GetVolumeId()) == 0 {
11131113
return nil, status.Error(codes.InvalidArgument, "Volume ID missing in the request")
11141114
}
@@ -1185,7 +1185,7 @@ func (d *Driver) CreateSnapshot(ctx context.Context, req *csi.CreateSnapshotRequ
11851185
csiMC.Observe(isOperationSucceeded)
11861186
}
11871187
}()
1188-
1188+
11891189
sourceVolumeID := req.GetSourceVolumeId()
11901190
if len(sourceVolumeID) == 0 {
11911191
return nil, status.Error(codes.InvalidArgument, "CreateSnapshot Source Volume ID must be provided")
@@ -1439,7 +1439,7 @@ func (d *Driver) DeleteSnapshot(ctx context.Context, req *csi.DeleteSnapshotRequ
14391439
defer func() {
14401440
csiMC.Observe(isOperationSucceeded)
14411441
}()
1442-
1442+
14431443
snapshotID := req.SnapshotId
14441444
if len(snapshotID) == 0 {
14451445
return nil, status.Error(codes.InvalidArgument, "Snapshot ID must be provided")

pkg/azuredisk/nodeserver.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (d *Driver) NodeStageVolume(_ context.Context, req *csi.NodeStageVolumeRequ
6767
defer func() {
6868
csiMC.Observe(isOperationSucceeded)
6969
}()
70-
70+
7171
volumeID := req.GetVolumeId()
7272
if len(volumeID) == 0 {
7373
return nil, status.Error(codes.InvalidArgument, "Volume ID not provided")
@@ -206,7 +206,7 @@ func (d *Driver) NodeUnstageVolume(_ context.Context, req *csi.NodeUnstageVolume
206206
defer func() {
207207
csiMC.Observe(isOperationSucceeded)
208208
}()
209-
209+
210210
volumeID := req.GetVolumeId()
211211
if len(volumeID) == 0 {
212212
return nil, status.Error(codes.InvalidArgument, "Volume ID not provided")
@@ -244,7 +244,7 @@ func (d *Driver) NodePublishVolume(_ context.Context, req *csi.NodePublishVolume
244244
defer func() {
245245
csiMC.Observe(isOperationSucceeded)
246246
}()
247-
247+
248248
volumeID := req.GetVolumeId()
249249
if len(volumeID) == 0 {
250250
return nil, status.Error(codes.InvalidArgument, "Volume ID missing in the request")
@@ -328,7 +328,7 @@ func (d *Driver) NodeUnpublishVolume(_ context.Context, req *csi.NodeUnpublishVo
328328
defer func() {
329329
csiMC.Observe(isOperationSucceeded)
330330
}()
331-
331+
332332
targetPath := req.GetTargetPath()
333333
volumeID := req.GetVolumeId()
334334

@@ -511,7 +511,7 @@ func (d *Driver) NodeExpandVolume(_ context.Context, req *csi.NodeExpandVolumeRe
511511
defer func() {
512512
csiMC.Observe(isOperationSucceeded)
513513
}()
514-
514+
515515
volumeID := req.GetVolumeId()
516516
if len(volumeID) == 0 {
517517
return nil, status.Error(codes.InvalidArgument, "Volume ID not provided")

0 commit comments

Comments
 (0)