Skip to content

Commit

Permalink
rename remaining places
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed May 28, 2020
1 parent 5c0a0a2 commit b87c9bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/legacy/core_plugins/elasticsearch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function (kibana) {
}

const cluster = new Cluster(
server.newPlatform.setup.core.elasticsearch.createClient(name, clientConfig)
server.newPlatform.setup.core.elasticsearch.legacy.createClient(name, clientConfig)
);

clusters.set(name, cluster);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ export class BulkUploader {
this._usageInterval = TELEMETRY_COLLECTION_INTERVAL;
this._log = log;

this._cluster = elasticsearch.createClient('admin', {
this._cluster = elasticsearch.legacy.createClient('admin', {
plugins: [monitoringBulk],
});

if (hasMonitoringCluster(config.elasticsearch)) {
this._log.info(`Detected direct connection to monitoring cluster`);
this._hasDirectConnectionToMonitoringCluster = true;
this._cluster = elasticsearch.createClient('monitoring-direct', config.elasticsearch);
this._cluster = elasticsearch.legacy.createClient('monitoring-direct', config.elasticsearch);
elasticsearch.legacy.client.callAsInternalUser('info').then((data) => {
this._productionClusterUuid = get(data, 'cluster_uuid');
});
Expand Down

0 comments on commit b87c9bf

Please sign in to comment.