Skip to content

Commit

Permalink
PORTAL-824 CloudAPI client is incorrectly URL encoding ?credentials=true
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Cavage committed Dec 7, 2011
1 parent 13468a1 commit d7800c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/cloudapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -818,10 +818,10 @@ CloudAPI.prototype.getMachine = function(account,

var self = this;
var path = sprintf(MACHINE, account, name);
if (getCredentials)
path += '?credentials=true';
return this._request(path, null, function(req) {
req.cacheTTL = (15 * 1000);
if (getCredentials)
req.path += '?credentials=true';
return self._get(req, callback, noCache);
});
};
Expand Down Expand Up @@ -1426,9 +1426,9 @@ CloudAPI.prototype.getMachineMetadata = function(account,

var self = this;
var path = sprintf(METADATA, account, m);
if (getCredentials)
path += '?credentials=true';
return this._request(path, null, function(req) {
if (getCredentials)
req.path += '?credentials=true';
return self._get(req, callback);
});
};
Expand Down

0 comments on commit d7800c3

Please sign in to comment.