Skip to content

Commit

Permalink
Fix volume unpublish errors when missing directory (#226)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Riley <mriley@vultr.com>
  • Loading branch information
beornf and optik-aper authored Oct 30, 2024
1 parent 11f0341 commit ed96c33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (n *VultrNodeServer) NodeUnstageVolume(ctx context.Context, req *csi.NodeUn
"staging-target-path": req.StagingTargetPath,
}).Info("Node Unstage Volume: called")

err := n.Driver.mounter.Unmount(req.StagingTargetPath)
err := mount.CleanupMountPoint(req.StagingTargetPath, n.Driver.mounter, true)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -211,7 +211,7 @@ func (n *VultrNodeServer) NodeUnpublishVolume(ctx context.Context, req *csi.Node
"target-path": req.TargetPath,
}).Info("Node Unpublish Volume: called")

err := n.Driver.mounter.Unmount(req.TargetPath)
err := mount.CleanupMountPoint(req.TargetPath, n.Driver.mounter, true)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit ed96c33

Please sign in to comment.