check for static ip assignment

This commit is contained in:
Johannes Zellner 2016-09-06 15:37:52 +02:00
parent da1ad85e6a
commit 72d7d3d1f9
1 changed files with 4 additions and 0 deletions

View File

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