Skip to content

Commit 1616c4e

Browse files
authored
Merge pull request #840 from andyzhangx/fix-dup-mount
fix: duplicated nfs mount
2 parents d13493d + d46f382 commit 1616c4e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/nfs/nodeserver.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ func (ns *NodeServer) NodePublishVolume(_ context.Context, req *csi.NodePublishV
136136
}
137137
timeoutFunc := func() error { return fmt.Errorf("time out") }
138138
if err := WaitUntilTimeout(90*time.Second, execFunc, timeoutFunc); err != nil {
139-
return nil, status.Error(codes.Internal, fmt.Sprintf("volume(%s) mount %q on %q failed with %v", volumeID, source, targetPath, err))
140-
}
141-
err = ns.mounter.Mount(source, targetPath, "nfs", mountOptions)
142-
if err != nil {
143139
if os.IsPermission(err) {
144140
return nil, status.Error(codes.PermissionDenied, err.Error())
145141
}

0 commit comments

Comments
 (0)