Don't try to parse return from DELETE address
This commit is contained in:
1 parent
aa1c1cc9be
commit
b86e6412fa
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user