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
This commit is contained in:
Kevin Cunnane
2019-10-31 14:39:45 -07:00
committed by GitHub
parent b62c0cf2ab
commit 333f634e94

View File

@@ -301,7 +301,7 @@ export class ClusterController {
private async withConnectRetry<T>(f: (...args: any[]) => Promise<T>, promptConnect: boolean, errorMessage: string, ...args: any[]): Promise<T> {
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