Merge pull request #80844 from zgfh/patch-7

cleanup: log message typo fix
This commit is contained in:
Kubernetes Prow Robot 2019-08-01 09:46:51 -07:00 committed by GitHub
commit 270d9529e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)