mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +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 {
|
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
|
// 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
|
continue
|
||||||
} else {
|
} else {
|
||||||
devicePaths[tp] = devicePath
|
devicePaths[tp] = devicePath
|
||||||
|
Loading…
Reference in New Issue
Block a user