Fixes to nodes
diff --git a/rackspace/lb/v1/nodes/requests.go b/rackspace/lb/v1/nodes/requests.go
index 28c6bf2..026ecd8 100644
--- a/rackspace/lb/v1/nodes/requests.go
+++ b/rackspace/lb/v1/nodes/requests.go
@@ -118,7 +118,7 @@
MoreHeaders: client.AuthenticatedHeaders(),
ReqBody: &reqBody,
Results: &res.Body,
- OkCodes: []int{200},
+ OkCodes: []int{202},
})
if err != nil {
res.Err = err
@@ -245,7 +245,7 @@
var res DeleteResult
_, res.Err = perigee.Request("DELETE", resourceURL(c, lbID, nodeID), perigee.Options{
MoreHeaders: c.AuthenticatedHeaders(),
- OkCodes: []int{200},
+ OkCodes: []int{202},
})
return res
}
@@ -276,8 +276,8 @@
// associated with the activity between the node and the load balancer. The
// events report errors found with the node. The detailedMessage provides the
// detailed reason for the error.
-func ListEvents(client *gophercloud.ServiceClient, loadBalancerID, nodeID int, opts ListEventsOptsBuilder) pagination.Pager {
- url := eventsURL(client, loadBalancerID, nodeID)
+func ListEvents(client *gophercloud.ServiceClient, loadBalancerID int, opts ListEventsOptsBuilder) pagination.Pager {
+ url := eventsURL(client, loadBalancerID)
if opts != nil {
query, err := opts.ToEventsListQuery()