Skip to content

Commit

Permalink
Merge pull request kubernetes#80612 from AllenZMC/patch-1
Browse files Browse the repository at this point in the history
fix typos in csi_attacher.go
  • Loading branch information
k8s-ci-robot authored Jul 30, 2019
2 parents c6101ab + 8833e40 commit dcf1eff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/volume/csi/csi_attacher.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ func (c *csiAttacher) MountDevice(spec *volume.Spec, devicePath string, deviceMo
// clean up metadata
klog.Errorf(log("attacher.MountDevice failed: %v", err))
if err := removeMountDir(c.plugin, deviceMountPath); err != nil {
klog.Error(log("attacher.MountDevice failed to remove mount dir after errir [%s]: %v", deviceMountPath, err))
klog.Error(log("attacher.MountDevice failed to remove mount dir after error [%s]: %v", deviceMountPath, err))
}
}
}()
Expand Down Expand Up @@ -584,7 +584,7 @@ func (c *csiAttacher) UnmountDevice(deviceMountPath string) error {
klog.Infof(log("attacher.UnmountDevice STAGE_UNSTAGE_VOLUME capability not set. Skipping UnmountDevice..."))
// Just delete the global directory + json file
if err := removeMountDir(c.plugin, deviceMountPath); err != nil {
return fmt.Errorf("failed to clean up gloubal mount %s: %s", dataDir, err)
return fmt.Errorf("failed to clean up global mount %s: %s", dataDir, err)
}

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

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

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

0 comments on commit dcf1eff

Please sign in to comment.