From 7531e2a311aa767a6657d2e13fc71823e9297caf Mon Sep 17 00:00:00 2001 From: 10177505 Date: Sat, 14 Nov 2020 11:32:39 +0800 Subject: [PATCH] Fix typo unmount for klog --- pkg/volume/rbd/attacher.go | 2 +- pkg/volume/rbd/disk_manager.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/volume/rbd/attacher.go b/pkg/volume/rbd/attacher.go index a7da9f07e30..9b834da6ae5 100644 --- a/pkg/volume/rbd/attacher.go +++ b/pkg/volume/rbd/attacher.go @@ -226,7 +226,7 @@ func (detacher *rbdDetacher) UnmountDevice(deviceMountPath string) error { if err = detacher.mounter.Unmount(deviceMountPath); err != nil { return err } - klog.V(3).Infof("rbd: successfully umount device mountpath %s", deviceMountPath) + klog.V(3).Infof("rbd: successfully unmount device mountpath %s", deviceMountPath) } // Get devicePath from deviceMountPath if devicePath is empty diff --git a/pkg/volume/rbd/disk_manager.go b/pkg/volume/rbd/disk_manager.go index c4d452afa26..d19209d2db6 100644 --- a/pkg/volume/rbd/disk_manager.go +++ b/pkg/volume/rbd/disk_manager.go @@ -116,7 +116,7 @@ func diskTearDown(manager diskManager, c rbdUnmounter, volPath string, mounter m // Unmount the bind-mount inside this pod. if err := mounter.Unmount(volPath); err != nil { - klog.Errorf("failed to umount %s", volPath) + klog.Errorf("failed to unmount %s", volPath) return err }