mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
refer to constant to guarantee constant behavior
This commit is contained in:
parent
c516bb51e3
commit
bdd5c15dee
@ -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
Block a user