add ACTIVE as pending state when deleting instance

This commit is contained in:
Julien Vey 2015-02-04 22:15:11 +01:00 committed by Jon Perritt
parent 8e9c6787dd
commit aae87816f6
1 changed files with 1 additions and 0 deletions

View File

@ -442,6 +442,7 @@ func resourceComputeInstanceV2Delete(d *schema.ResourceData, meta interface{}) e
log.Printf("[DEBUG] Waiting for instance (%s) to delete", d.Id())
stateConf := &resource.StateChangeConf{
Pending: []string{"ACTIVE"},
Target: "DELETED",
Refresh: ServerV2StateRefreshFunc(computeClient, d.Id()),
Timeout: 10 * time.Minute,