[es] skip exact version warning in dev

This commit is contained in:
Jonathan Budzenski 2018-11-07 16:38:25 -06:00
parent 29d8a9de92
commit 479f95e9e1
No known key found for this signature in database
GPG key ID: D28BF9418FA0F292

View file

@ -61,7 +61,11 @@ export function ensureEsVersion(server, kibanaVersion) {
// It's acceptable if ES and Kibana versions are not the same so long as
// they are not incompatible, but we should warn about it
if (esNode.version !== kibanaVersion) {
// In development we ignore, this can be expected when testing against snapshots
// or across version qualifiers
const isProd = server.config().get('env.prod');
const versionMismatch = esNode.version !== kibanaVersion;
if (isProd && versionMismatch) {
warningNodes.push(esNode);
}
});