mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Modified KibanaServerVersion to parse v5 and v6 status formats (#12878)
* Modified KibanaServerVersion to parse v5 and v6 status formats * Furthering the war against lodash
This commit is contained in:
parent
e3932ee129
commit
89394b4490
1 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,11 @@ export class KibanaServerVersion {
|
|||
}
|
||||
|
||||
const status = await this.kibanaStatus.get();
|
||||
if (status && status.version && typeof status.version === 'string') {
|
||||
this._cachedVersionNumber = status.version;
|
||||
return this._cachedVersionNumber;
|
||||
}
|
||||
|
||||
if (status && status.version && status.version.number) {
|
||||
this._cachedVersionNumber = status.version.number;
|
||||
return this._cachedVersionNumber;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue