Skip to content

Commit bf3ac46

Browse files
committed
provider/digitalocean: less aggressive retry
1 parent c2677b3 commit bf3ac46

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

builtin/providers/digitalocean/resource_digitalocean_droplet.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,12 @@ func WaitForDropletAttribute(id string, target string, pending []string, attribu
317317
id, attribute, target)
318318

319319
stateConf := &resource.StateChangeConf{
320-
Pending: pending,
321-
Target: target,
322-
Refresh: new_droplet_state_refresh_func(id, attribute, client),
323-
Timeout: 10 * time.Minute,
320+
Pending: pending,
321+
Target: target,
322+
Refresh: new_droplet_state_refresh_func(id, attribute, client),
323+
Timeout: 10 * time.Minute,
324+
Delay: 10 * time.Second,
325+
MinTimeout: 3 * time.Second,
324326
}
325327

326328
return stateConf.WaitForState()

0 commit comments

Comments
 (0)