Skip to content

Commit b87c9bf

Browse files
committed
rename remaining places
1 parent 5c0a0a2 commit b87c9bf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/legacy/core_plugins/elasticsearch/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default function (kibana) {
7272
}
7373

7474
const cluster = new Cluster(
75-
server.newPlatform.setup.core.elasticsearch.createClient(name, clientConfig)
75+
server.newPlatform.setup.core.elasticsearch.legacy.createClient(name, clientConfig)
7676
);
7777

7878
clusters.set(name, cluster);

x-pack/plugins/monitoring/server/kibana_monitoring/bulk_uploader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ export class BulkUploader {
5050
this._usageInterval = TELEMETRY_COLLECTION_INTERVAL;
5151
this._log = log;
5252

53-
this._cluster = elasticsearch.createClient('admin', {
53+
this._cluster = elasticsearch.legacy.createClient('admin', {
5454
plugins: [monitoringBulk],
5555
});
5656

5757
if (hasMonitoringCluster(config.elasticsearch)) {
5858
this._log.info(`Detected direct connection to monitoring cluster`);
5959
this._hasDirectConnectionToMonitoringCluster = true;
60-
this._cluster = elasticsearch.createClient('monitoring-direct', config.elasticsearch);
60+
this._cluster = elasticsearch.legacy.createClient('monitoring-direct', config.elasticsearch);
6161
elasticsearch.legacy.client.callAsInternalUser('info').then((data) => {
6262
this._productionClusterUuid = get(data, 'cluster_uuid');
6363
});

0 commit comments

Comments
 (0)