check boxInfo status correctly

This commit is contained in:
Girish Ramakrishnan 2016-04-26 18:33:34 -07:00
parent 1eae27126f
commit bba174ec32
1 changed files with 1 additions and 1 deletions

View File

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