Don't paginate autoscale webhook create results
diff --git a/rackspace/autoscale/v1/webhooks/requests.go b/rackspace/autoscale/v1/webhooks/requests.go
index 2a07357..bfdb01a 100644
--- a/rackspace/autoscale/v1/webhooks/requests.go
+++ b/rackspace/autoscale/v1/webhooks/requests.go
@@ -78,15 +78,9 @@
return res
}
- resp, err := client.Post(createURL(client, groupID, policyID), reqBody, &res.Body, nil)
+ _, res.Err = client.Post(createURL(client, groupID, policyID), reqBody, &res.Body, nil)
- if err != nil {
- res.Err = err
- return res
- }
-
- pr := pagination.PageResultFromParsed(resp, res.Body)
- return CreateResult{pagination.SinglePageBase(pr)}
+ return res
}
// Get requests the details of a single webhook with the given ID.