check boxInfo status correctly
This commit is contained in:
parent
1eae27126f
commit
bba174ec32
@ -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);
|
debug('Box created in %s minutes with IP:%s'.green, (new Date() - creationTime) / 60000, res.body.box.ip);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user