provider/google: Add an additional delay when checking for sql operations (#15170)

This commit is contained in:
Dana Hoffman 2017-06-09 03:33:29 -07:00 committed by Paul Stack
parent 12d6afd1ee
commit 93c6c0de25
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ func sqladminOperationWait(config *Config, op *sqladmin.Operation, activity stri
state := w.Conf() state := w.Conf()
state.Timeout = 10 * time.Minute state.Timeout = 10 * time.Minute
state.MinTimeout = 2 * time.Second state.MinTimeout = 2 * time.Second
state.Delay = 5 * time.Second
opRaw, err := state.WaitForState() opRaw, err := state.WaitForState()
if err != nil { if err != nil {
return fmt.Errorf("Error waiting for %s (op %s): %s", activity, op.Name, err) return fmt.Errorf("Error waiting for %s (op %s): %s", activity, op.Name, err)