only listen for an error from es.cluster.health() call when the indices.create() call succeeds

This commit is contained in:
Spencer Alger 2014-05-06 12:24:44 -07:00
parent 3835b38049
commit 7b8f0b2c5b

View file

@ -33,11 +33,11 @@ define(function (require) {
return es.cluster.health({
waitForStatus: 'yellow',
index: configFile.kibanaIndex
})
.catch(function (err) {
throw new SetupError('Waiting for Kibana index "<%= configFile.kibanaIndex %>" to come online failed', err);
});
})
.catch(function (err) {
throw new SetupError('Waiting for Kibana index "<%= configFile.kibanaIndex %>" to come online failed', err);
})
.then(complete, complete.failure);
};
};