Adding DeleteResult for rackspace.compute.v2.servers.Delete
diff --git a/rackspace/compute/v2/servers/delegate.go b/rackspace/compute/v2/servers/delegate.go
index cbf5384..4c7b249 100644
--- a/rackspace/compute/v2/servers/delegate.go
+++ b/rackspace/compute/v2/servers/delegate.go
@@ -17,7 +17,7 @@
}
// Delete requests that a server previously provisioned be removed from your account.
-func Delete(client *gophercloud.ServiceClient, id string) error {
+func Delete(client *gophercloud.ServiceClient, id string) os.DeleteResult {
return os.Delete(client, id)
}
diff --git a/rackspace/compute/v2/servers/delegate_test.go b/rackspace/compute/v2/servers/delegate_test.go
index 0c331eb..7f41404 100644
--- a/rackspace/compute/v2/servers/delegate_test.go
+++ b/rackspace/compute/v2/servers/delegate_test.go
@@ -56,8 +56,8 @@
defer th.TeardownHTTP()
os.HandleServerDeletionSuccessfully(t)
- err := Delete(client.ServiceClient(), "asdfasdfasdf")
- th.AssertNoErr(t, err)
+ res := Delete(client.ServiceClient(), "asdfasdfasdf")
+ th.AssertNoErr(t, res.Err)
}
func TestGetServer(t *testing.T) {