Whoops -- forgot authentication token.
diff --git a/rackspace/monitoring/notificationPlans/requests.go b/rackspace/monitoring/notificationPlans/requests.go
index 95ae39c..5804eb4 100644
--- a/rackspace/monitoring/notificationPlans/requests.go
+++ b/rackspace/monitoring/notificationPlans/requests.go
@@ -4,6 +4,7 @@
"fmt"
"github.com/racker/perigee"
"github.com/rackspace/gophercloud/rackspace/monitoring"
+ "github.com/rackspace/gophercloud/openstack/identity"
)
var ErrNotImplemented = fmt.Errorf("notificationPlans feature not yet implemented")
@@ -23,10 +24,17 @@
func (c *Client) Delete(id string) (DeleteResults, error) {
var dr DeleteResults
+ tok, err := identity.Token(c.options.Authentication)
+ if err != nil {
+ return nil, err
+ }
url := fmt.Sprintf("%s/notification_plans/%s", c.options.Endpoint, id)
- err := perigee.Delete(url, perigee.Options{
+ err = perigee.Delete(url, perigee.Options{
Results: &dr,
OkCodes: []int{204},
+ MoreHeaders: map[string]string{
+ "X-Auth-Token": tok.Id(),
+ },
})
return dr, err
}