Skip to content

Commit dcf1eff

Browse files
authored
Merge pull request kubernetes#80612 from AllenZMC/patch-1
fix typos in csi_attacher.go
2 parents c6101ab + 8833e40 commit dcf1eff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/volume/csi/csi_attacher.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ func (c *csiAttacher) MountDevice(spec *volume.Spec, devicePath string, deviceMo
343343
// clean up metadata
344344
klog.Errorf(log("attacher.MountDevice failed: %v", err))
345345
if err := removeMountDir(c.plugin, deviceMountPath); err != nil {
346-
klog.Error(log("attacher.MountDevice failed to remove mount dir after errir [%s]: %v", deviceMountPath, err))
346+
klog.Error(log("attacher.MountDevice failed to remove mount dir after error [%s]: %v", deviceMountPath, err))
347347
}
348348
}
349349
}()
@@ -584,7 +584,7 @@ func (c *csiAttacher) UnmountDevice(deviceMountPath string) error {
584584
klog.Infof(log("attacher.UnmountDevice STAGE_UNSTAGE_VOLUME capability not set. Skipping UnmountDevice..."))
585585
// Just delete the global directory + json file
586586
if err := removeMountDir(c.plugin, deviceMountPath); err != nil {
587-
return fmt.Errorf("failed to clean up gloubal mount %s: %s", dataDir, err)
587+
return fmt.Errorf("failed to clean up global mount %s: %s", dataDir, err)
588588
}
589589

590590
return nil
@@ -602,7 +602,7 @@ func (c *csiAttacher) UnmountDevice(deviceMountPath string) error {
602602

603603
// Delete the global directory + json file
604604
if err := removeMountDir(c.plugin, deviceMountPath); err != nil {
605-
return fmt.Errorf("failed to clean up gloubal mount %s: %s", dataDir, err)
605+
return fmt.Errorf("failed to clean up global mount %s: %s", dataDir, err)
606606
}
607607

608608
klog.V(4).Infof(log("attacher.UnmountDevice successfully requested NodeStageVolume [%s]", deviceMountPath))

0 commit comments

Comments
 (0)