diff --git a/appstore.js b/appstore.js index f917011..29a7fe1 100644 --- a/appstore.js +++ b/appstore.js @@ -97,7 +97,7 @@ AppStore.prototype.waitForCloudron = function (boxId) { } } - if (!boxInfo) throw new Error('waitForCloudron: could not get cloudron status'); + 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);