From e78ff7116e5c09f0c21c73fd01a853b815108ba7 Mon Sep 17 00:00:00 2001 From: pgayvallet Date: Fri, 11 Feb 2022 16:24:37 +0100 Subject: [PATCH] fix new upgrade assistant /remote_clusters endpoint --- .../plugins/upgrade_assistant/server/routes/remote_clusters.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/upgrade_assistant/server/routes/remote_clusters.ts b/x-pack/plugins/upgrade_assistant/server/routes/remote_clusters.ts index de2177cffa1fe..0d7268e1be5be 100644 --- a/x-pack/plugins/upgrade_assistant/server/routes/remote_clusters.ts +++ b/x-pack/plugins/upgrade_assistant/server/routes/remote_clusters.ts @@ -26,7 +26,7 @@ export function registerRemoteClustersRoute({ router, lib: { handleEsError } }: response ) => { try { - const { body: clustersByName } = await client.asCurrentUser.cluster.remoteInfo(); + const clustersByName = await client.asCurrentUser.cluster.remoteInfo(); const remoteClusters = Object.keys(clustersByName);