provider/openstack: Handle disassociating FloatingIP's from a server
that's been deleted using the `CheckDeleted` function.
This commit is contained in:
parent
15704cc6ee
commit
2d3f1ad222
|
@ -110,7 +110,7 @@ func resourceComputeFloatingIPAssociateV2Delete(d *schema.ResourceData, meta int
|
||||||
|
|
||||||
err = floatingips.DisassociateInstance(computeClient, instanceId, disassociateOpts).ExtractErr()
|
err = floatingips.DisassociateInstance(computeClient, instanceId, disassociateOpts).ExtractErr()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Error disassociating floating IP: %s", err)
|
return CheckDeleted(d, err, "floating ip association")
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue