check for static ip assignment
This commit is contained in:
parent
da1ad85e6a
commit
72d7d3d1f9
|
@ -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');
|
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);
|
debug('Box created in %s minutes with IP:%s'.green, (new Date() - creationTime) / 60000, res.body.box.ip);
|
||||||
|
|
Loading…
Reference in New Issue