From 0df550c75eea5314b28c5c123addcb84854c4151 Mon Sep 17 00:00:00 2001 From: "girish@cloudron.io" Date: Wed, 27 Jan 2016 09:12:22 -0800 Subject: [PATCH] activate returning 409 is an error --- cloudron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudron.js b/cloudron.js index 4f651fc..2b4d8cd 100644 --- a/cloudron.js +++ b/cloudron.js @@ -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');