do not keep retrying (when deleting cloudron in after.js)

This commit is contained in:
Girish Ramakrishnan 2016-06-07 21:10:09 -07:00
parent 663a90a2b8
commit 6236041f0b

View File

@ -48,7 +48,7 @@ AppStore.prototype.getCloudrons = function () {
};
AppStore.prototype.getCloudron = function (boxId) {
var res = request.get(this._origin + '/api/v1/cloudrons/' + boxId).query({ accessToken: this._credentials.accessToken }).end();
var res = request.get(this._origin + '/api/v1/cloudrons/' + boxId).query({ accessToken: this._credentials.accessToken }).retry(0).end();
if (res.statusCode === 404) return null;
common.verifyResponse2xx(res, 'Could not query cloudron status');
return res.body.box;