mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
only listen for an error from es.cluster.health() call when the indices.create() call succeeds
This commit is contained in:
parent
3835b38049
commit
7b8f0b2c5b
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue