Permalink
Browse files

[fix] regression fix

  • Loading branch information...
1 parent d7e0f8d commit c2b71ec22cd53cae464cf0114ec99af0622fcce6 @bmeck bmeck committed Feb 23, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/cloudservers/core.js
  2. +1 −1 lib/cloudservers/utils.js
@@ -169,7 +169,7 @@ Client.prototype.renameServer = function (server, name, callback) {
Client.prototype.destroyServer = function (server, callback) {
var serverId = server instanceof cloudservers.Server ? server.id : server;
- utils.rackspaceCurl('DELETE', ['servers', serverId], this, callback, function (body, response) {
+ utils.rackspace('DELETE', ['servers', serverId], this, callback, function (body, response) {
callback(null, response);
});
}
@@ -92,7 +92,6 @@ utils.rackspace = function () {
function makeRequest () {
// Append the X-Auth-Token header for Rackspace authenticatio
headers['X-AUTH-TOKEN'] = client.config.authToken;
-
var serverOptions = {
uri: uri.replace(/\.json$/,''),
method: method,
@@ -124,6 +123,7 @@ utils.rackspace = function () {
}
if (client.authorized) {
+ uri = client.serverUrl.apply(client, [].concat(uri));
makeRequest();
}
else {

0 comments on commit c2b71ec

Please sign in to comment.