provider/openstack: Handle disassociating FloatingIP's from a server

that's been deleted using the `CheckDeleted` function.
This commit is contained in:
Gavin Williams 2017-05-04 15:06:15 +01:00
parent 15704cc6ee
commit 2d3f1ad222
1 changed files with 1 additions and 1 deletions

View File

@ -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