mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Merge pull request #134144 from swagatbora90/fix-kubeletnull-crash
change klog to log volume name instead of entire spec in GetDeviceMountPath
This commit is contained in:
commit
5b3bbd89e6
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ func (c *csiAttacher) VolumesAreAttached(specs []*volume.Spec, nodeName types.No
|
|||
}
|
||||
|
||||
func (c *csiAttacher) GetDeviceMountPath(spec *volume.Spec) (string, error) {
|
||||
klog.V(4).Info(log("attacher.GetDeviceMountPath(%v)", spec))
|
||||
klog.V(4).Info(log("attacher.GetDeviceMountPath for volume(%s)", spec.Name()))
|
||||
deviceMountPath, err := makeDeviceMountPath(c.plugin, spec)
|
||||
if err != nil {
|
||||
return "", errors.New(log("attacher.GetDeviceMountPath failed to make device mount path: %v", err))
|
||||
|
|
|
|||
Loading…
Reference in a new issue