From 8ab4d37f7cfcd167038f9d1db2c4b6a09e2f10a6 Mon Sep 17 00:00:00 2001 From: Jack Pearkes Date: Thu, 26 Feb 2015 10:00:25 -0800 Subject: [PATCH] providers/digitalocean: be more lenient for droplets 404ing on creation --- .../providers/digitalocean/resource_digitalocean_droplet.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/builtin/providers/digitalocean/resource_digitalocean_droplet.go b/builtin/providers/digitalocean/resource_digitalocean_droplet.go index ac929d2385..f178cc3915 100644 --- a/builtin/providers/digitalocean/resource_digitalocean_droplet.go +++ b/builtin/providers/digitalocean/resource_digitalocean_droplet.go @@ -366,6 +366,11 @@ func WaitForDropletAttribute( Timeout: 60 * time.Minute, Delay: 10 * time.Second, MinTimeout: 3 * time.Second, + + // This is a hack around DO API strangeness. + // https://github.com/hashicorp/terraform/issues/481 + // + NotFoundChecks: 60, } return stateConf.WaitForState()