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:
parent
e872c3d8ba
commit
866e49455f
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue