Merge pull request #7428 from ycombinator/gh-7424

Don't turn Kibana plugin red if Kibana index is not yet ready
This commit is contained in:
Shaunak Kashyap 2016-06-10 16:51:54 -05:00 committed by GitHub
commit 5cf440c19a

View file

@ -24,8 +24,11 @@ export default function setupSettings(kbnServer, server, config) {
}
function userSettingsNotFound(kibanaVersion) {
const message = 'Could not find user-provided settings for this version of Kibana (' + kibanaVersion + ')';
server.plugins.kibana.status.red(message);
if (server.plugins.elasticsearch.status.state === 'green') {
server.plugins.kibana.status.red(`Could not find user-provided settings for this version of Kibana (${kibanaVersion})`);
} else {
server.log(['warning', 'settings'], 'User-provided settings were requested before the Kibana index was ready');
}
return {};
}