Skip to content

Commit

Permalink
Merge pull request #1605 from dobsonj/idempotent-unmount
Browse files Browse the repository at this point in the history
idempotent unmount from NodeUnstageVolume / NodeUnpublishVolume
  • Loading branch information
k8s-ci-robot authored May 18, 2023
2 parents 47a0e10 + 1b1e877 commit 9b7b951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/driver/mount_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (m *NodeMounter) Unpublish(path string) error {
}

func (m *NodeMounter) Unstage(path string) error {
err := m.Unmount(path)
err := mountutils.CleanupMountPoint(path, m, false)
// Ignore the error when it contains "not mounted", because that indicates the
// world is already in the desired state
//
Expand Down

0 comments on commit 9b7b951

Please sign in to comment.