mirror of https://github.com/k3s-io/k3s
Merge pull request #77453 from danielqsj/mdt
refer to constant to guarantee constant behaviork3s-v1.15.3
commit
c4c9e256c6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue