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);