do not keep retrying (when deleting cloudron in after.js)
This commit is contained in:
parent
663a90a2b8
commit
6236041f0b
|
@ -48,7 +48,7 @@ AppStore.prototype.getCloudrons = function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
AppStore.prototype.getCloudron = function (boxId) {
|
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;
|
if (res.statusCode === 404) return null;
|
||||||
common.verifyResponse2xx(res, 'Could not query cloudron status');
|
common.verifyResponse2xx(res, 'Could not query cloudron status');
|
||||||
return res.body.box;
|
return res.body.box;
|
||||||
|
|
Loading…
Reference in New Issue