From b86e6412fa908cd9e0ac9803b3d49c70ec3e386c Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Thu, 10 Mar 2016 10:38:53 +0000 Subject: [PATCH] Don't try to parse return from DELETE address --- api/ipam.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/ipam.go b/api/ipam.go index d061b420..3f15af7f 100644 --- a/api/ipam.go +++ b/api/ipam.go @@ -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 }