Skip to content

Commit c4c9e25

Browse files
authored
Merge pull request kubernetes#77453 from danielqsj/mdt
refer to constant to guarantee constant behavior
2 parents 4ed620c + bdd5c15 commit c4c9e25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/volume/iscsi/iscsi_util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,9 @@ func (util *ISCSIUtil) AttachDisk(b iscsiDiskMounter) (string, error) {
418418
}
419419

420420
if exist := waitForPathToExist(&devicePath, multipathDeviceTimeout, iscsiTransport); !exist {
421-
klog.Errorf("Could not attach disk: Timeout after 10s")
421+
klog.Errorf("Could not attach disk: Timeout after %ds", multipathDeviceTimeout)
422422
// update last error
423-
lastErr = fmt.Errorf("Could not attach disk: Timeout after 10s")
423+
lastErr = fmt.Errorf("Could not attach disk: Timeout after %ds", multipathDeviceTimeout)
424424
continue
425425
} else {
426426
devicePaths[tp] = devicePath

0 commit comments

Comments
 (0)