From 0d2b542dde3f82c9c00f72e2f854854a7c64f367 Mon Sep 17 00:00:00 2001 From: xiongzhongliang Date: Sat, 14 Nov 2020 23:44:38 +0800 Subject: [PATCH] fix typo and format for klog --- pkg/volume/util/operationexecutor/operation_generator.go | 6 +++--- pkg/volume/vsphere_volume/attacher.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/volume/util/operationexecutor/operation_generator.go b/pkg/volume/util/operationexecutor/operation_generator.go index 7d51ac80645..e59f182d65d 100644 --- a/pkg/volume/util/operationexecutor/operation_generator.go +++ b/pkg/volume/util/operationexecutor/operation_generator.go @@ -834,9 +834,9 @@ func (og *operationGenerator) GenerateUnmountDeviceFunc( return volumetypes.GeneratedOperations{}, deviceToDetach.GenerateErrorDetailed("UnmountDevice.FindDeviceMountablePluginByName failed", err) } - volumeDeviceUmounter, err := deviceMountableVolumePlugin.NewDeviceUnmounter() + volumeDeviceUnmounter, err := deviceMountableVolumePlugin.NewDeviceUnmounter() if err != nil { - return volumetypes.GeneratedOperations{}, deviceToDetach.GenerateErrorDetailed("UnmountDevice.NewDeviceUmounter failed", err) + return volumetypes.GeneratedOperations{}, deviceToDetach.GenerateErrorDetailed("UnmountDevice.NewDeviceUnmounter failed", err) } volumeDeviceMounter, err := deviceMountableVolumePlugin.NewDeviceMounter() @@ -868,7 +868,7 @@ func (og *operationGenerator) GenerateUnmountDeviceFunc( return deviceToDetach.GenerateError("GetDeviceMountRefs check failed", err) } // Execute unmount - unmountDeviceErr := volumeDeviceUmounter.UnmountDevice(deviceMountPath) + unmountDeviceErr := volumeDeviceUnmounter.UnmountDevice(deviceMountPath) if unmountDeviceErr != nil { // On failure, return error. Caller will log and retry. return deviceToDetach.GenerateError("UnmountDevice failed", unmountDeviceErr) diff --git a/pkg/volume/vsphere_volume/attacher.go b/pkg/volume/vsphere_volume/attacher.go index dd4ad35d23f..727d0ac2b64 100644 --- a/pkg/volume/vsphere_volume/attacher.go +++ b/pkg/volume/vsphere_volume/attacher.go @@ -209,7 +209,7 @@ func (plugin *vsphereVolumePlugin) GetDeviceMountRefs(deviceMountPath string) ([ // MountDevice mounts device to global mount point. func (attacher *vsphereVMDKAttacher) MountDevice(spec *volume.Spec, devicePath string, deviceMountPath string) error { - klog.Info("vsphere MountDevice", devicePath, deviceMountPath) + klog.Infof("vsphere MountDevice mount %s to %s", devicePath, deviceMountPath) mounter := attacher.host.GetMounter(vsphereVolumePluginName) notMnt, err := mounter.IsLikelyNotMountPoint(deviceMountPath) if err != nil {