Increase wait time for device to be created.

This commit is contained in:
Brad Ackerman 2020-08-01 21:13:14 -07:00
parent 364c415294
commit 13a4e47efe
No known key found for this signature in database
GPG Key ID: 5C5E7A6B14E3D827
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}