activate returning 409 is an error
This commit is contained in:
parent
c78cee1884
commit
0df550c75e
@ -83,7 +83,7 @@ Cloudron.prototype.activate = function (user) {
|
||||
|
||||
////////// activation
|
||||
var res = request.post(this._origin + '/api/v1/cloudron/activate').query({ setupToken: setupToken }).send(user).end();
|
||||
if (res.statusCode !== 409) common.verifyResponse2(res, 'Could not activate the box'); // 409 - already activated
|
||||
common.verifyResponse2(res, 'Could not activate the box'); // 409 - already activated
|
||||
|
||||
res = request.get(this._origin + '/api/v1/cloudron/status').end();
|
||||
common.verifyResponse2(res, 'Could not get Cloudron status');
|
||||
|
Loading…
Reference in New Issue
Block a user