Merge pull request #80844 from zgfh/patch-7
cleanup: log message typo fix
This commit is contained in:
commit
270d9529e0
@ -70,7 +70,7 @@ func findDiskByLun(lun int, iohandler ioHandler, exec mount.Exec) (string, error
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
klog.V(4).Infof("found a disk, locatin: %q, lun: %q", location, arr[arrLen-1])
|
klog.V(4).Infof("found a disk, location: %q, lun: %q", location, arr[arrLen-1])
|
||||||
//last element of location field is LUN number, e.g.
|
//last element of location field is LUN number, e.g.
|
||||||
// "location": "Integrated : Adapter 3 : Port 0 : Target 0 : LUN 1"
|
// "location": "Integrated : Adapter 3 : Port 0 : Target 0 : LUN 1"
|
||||||
l, err := strconv.Atoi(arr[arrLen-1])
|
l, err := strconv.Atoi(arr[arrLen-1])
|
||||||
@ -80,7 +80,7 @@ func findDiskByLun(lun int, iohandler ioHandler, exec mount.Exec) (string, error
|
|||||||
}
|
}
|
||||||
|
|
||||||
if l == lun {
|
if l == lun {
|
||||||
klog.V(4).Infof("found a disk and lun, locatin: %q, lun: %d", location, lun)
|
klog.V(4).Infof("found a disk and lun, location: %q, lun: %d", location, lun)
|
||||||
if d, ok := v["number"]; ok {
|
if d, ok := v["number"]; ok {
|
||||||
if diskNum, ok := d.(float64); ok {
|
if diskNum, ok := d.(float64); ok {
|
||||||
klog.V(2).Infof("azureDisk Mount: got disk number(%d) by LUN(%d)", int(diskNum), lun)
|
klog.V(2).Infof("azureDisk Mount: got disk number(%d) by LUN(%d)", int(diskNum), lun)
|
||||||
|
Loading…
Reference in New Issue
Block a user