From 72d7d3d1f9ceabf3c3240854d1a8ac2c9cb85c2d Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 6 Sep 2016 15:37:52 +0200 Subject: [PATCH] check for static ip assignment --- appstore.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/appstore.js b/appstore.js index dfef693..7efdcb2 100644 --- a/appstore.js +++ b/appstore.js @@ -97,6 +97,10 @@ AppStore.prototype.waitForCloudron = function (boxId) { } } + // check for static ip + if (!boxInfo || !boxInfo.staticIp) throw new Error('waitForCloudron: could not get cloudron static ip'); + + // check for ready state if (!boxInfo || boxInfo.status !== 'ready') throw new Error('waitForCloudron: could not get cloudron status'); debug('Box created in %s minutes with IP:%s'.green, (new Date() - creationTime) / 60000, res.body.box.ip);