Don't try to parse return from DELETE address

This commit is contained in:
Bryan Boreham committed 2016-03-17 12:06:34 +00:00
1 parent aa1c1cc9be
commit b86e6412fa
1 file changed
+1 -1
+1 -1
View File
@@ -40,7 +40,7 @@ func (client *Client) ClaimIP(ID string, cidr *net.IPNet) error {
// release all IPs owned by an ID
func (client *Client) ReleaseIPsFor(ID string) error {
_, err := client.ipamOp(ID, "DELETE")
_, err := client.httpVerb("DELETE", fmt.Sprintf("/ip/%s", ID), nil)
return err
}