Merge pull request #77453 from danielqsj/mdt

refer to constant to guarantee constant behavior
k3s-v1.15.3
Kubernetes Prow Robot 2019-05-05 04:07:37 -07:00 committed by GitHub
commit c4c9e256c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -418,9 +418,9 @@ func (util *ISCSIUtil) AttachDisk(b iscsiDiskMounter) (string, error) {
}
if exist := waitForPathToExist(&devicePath, multipathDeviceTimeout, iscsiTransport); !exist {
klog.Errorf("Could not attach disk: Timeout after 10s")
klog.Errorf("Could not attach disk: Timeout after %ds", multipathDeviceTimeout)
// update last error
lastErr = fmt.Errorf("Could not attach disk: Timeout after 10s")
lastErr = fmt.Errorf("Could not attach disk: Timeout after %ds", multipathDeviceTimeout)
continue
} else {
devicePaths[tp] = devicePath