Skip to content

Commit fbb5ddc

Browse files
committed
cleanup: fix incorrect logging info when volume is already mounted
1 parent d466d64 commit fbb5ddc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/blob/nodeserver.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ func (d *Driver) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolu
133133
}
134134
if mnt {
135135
klog.V(2).Infof("NodePublishVolume: volume %s is already mounted on %s", volumeID, target)
136+
isOperationSucceeded = true
136137
return &csi.NodePublishVolumeResponse{}, nil
137138
}
138139

@@ -329,6 +330,7 @@ func (d *Driver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRe
329330
}
330331
if mnt {
331332
klog.V(2).Infof("NodeStageVolume: volume %s is already mounted on %s", volumeID, targetPath)
333+
isOperationSucceeded = true
332334
return &csi.NodeStageVolumeResponse{}, nil
333335
}
334336

0 commit comments

Comments
 (0)