fix: duplicate nfs mount
This commit is contained in:
parent
d13493d308
commit
d46f382590
@ -136,10 +136,6 @@ func (ns *NodeServer) NodePublishVolume(_ context.Context, req *csi.NodePublishV
|
||||
}
|
||||
timeoutFunc := func() error { return fmt.Errorf("time out") }
|
||||
if err := WaitUntilTimeout(90*time.Second, execFunc, timeoutFunc); err != nil {
|
||||
return nil, status.Error(codes.Internal, fmt.Sprintf("volume(%s) mount %q on %q failed with %v", volumeID, source, targetPath, err))
|
||||
}
|
||||
err = ns.mounter.Mount(source, targetPath, "nfs", mountOptions)
|
||||
if err != nil {
|
||||
if os.IsPermission(err) {
|
||||
return nil, status.Error(codes.PermissionDenied, err.Error())
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user