Increase wait time for device to be created.
This commit is contained in:
parent
364c415294
commit
13a4e47efe
|
@ -36,7 +36,7 @@ func (da diskAttacher) WaitForDevice(ctx context.Context, lun int32) (device str
|
|||
if matches := devRegex.FindStringSubmatch(line); matches != nil {
|
||||
// If this function immediately returns, devfs won't have
|
||||
// created the device yet.
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
time.Sleep(1000 * time.Millisecond)
|
||||
return fmt.Sprintf("/dev/da%s", matches[1]), nil
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue