From 333f634e941b928b1d1e4994aeb335c5639803a9 Mon Sep 17 00:00:00 2001 From: Kevin Cunnane Date: Thu, 31 Oct 2019 14:39:45 -0700 Subject: [PATCH] Fix #8159 Mount HDFS broken against latest cluster (#8160) connectWithRetry needed to pass as ... so each arg was set correctly, instead of having 1st param be an array of the input arguments --- .../src/bigDataCluster/controller/clusterControllerApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/big-data-cluster/src/bigDataCluster/controller/clusterControllerApi.ts b/extensions/big-data-cluster/src/bigDataCluster/controller/clusterControllerApi.ts index ecb4c7d50d..a5d2d80b69 100644 --- a/extensions/big-data-cluster/src/bigDataCluster/controller/clusterControllerApi.ts +++ b/extensions/big-data-cluster/src/bigDataCluster/controller/clusterControllerApi.ts @@ -301,7 +301,7 @@ export class ClusterController { private async withConnectRetry(f: (...args: any[]) => Promise, promptConnect: boolean, errorMessage: string, ...args: any[]): Promise { try { try { - return await f(this, args); + return await f(this, ...args); } catch (error) { if (promptConnect) { // We don't want to open multiple dialogs here if multiple calls come in the same time so check