no need to sleep for last retry
Signed-off-by: forrestchen <forrestchen@tencent.com>
This commit is contained in:
@@ -84,6 +84,9 @@ func waitForPath(pool, image string, maxRetries int) (string, bool) {
|
||||
if found {
|
||||
return devicePath, true
|
||||
}
|
||||
if i == maxRetries-1 {
|
||||
break
|
||||
}
|
||||
time.Sleep(time.Second)
|
||||
}
|
||||
return "", false
|
||||
|
||||
Reference in New Issue
Block a user