provider/openstack: Add detaching as valid pending state

This commit allows "detaching" to be a valid pending state when
detaching a volume. Despite being obvious pending state, it also
helps in race situations when a volume is implicitly being detached
by Nova.
This commit is contained in:
Joe Topjian 2016-02-27 23:47:31 +00:00
parent e872c3d8ba
commit 866e49455f
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ func resourceBlockStorageVolumeV1Delete(d *schema.ResourceData, meta interface{}
} }
stateConf := &resource.StateChangeConf{ stateConf := &resource.StateChangeConf{
Pending: []string{"in-use", "attaching"}, Pending: []string{"in-use", "attaching", "detaching"},
Target: []string{"available"}, Target: []string{"available"},
Refresh: VolumeV1StateRefreshFunc(blockStorageClient, d.Id()), Refresh: VolumeV1StateRefreshFunc(blockStorageClient, d.Id()),
Timeout: 10 * time.Minute, Timeout: 10 * time.Minute,