fix node shell failure to open (#2467)

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
Jim Ehrismann authored and Sebastian Malton committed 2021-04-07 14:13:05 -04:00
1 parent b597d755a1
commit 26ac35049d
1 file changed
+4
+4
View File
@@ -20,6 +20,10 @@ export class NodeShellSession extends ShellSession {
}
public async open() {
// these are needed by the ShellSession getCachedShellEnv() method
this.kubeconfigPath = await this.cluster.getProxyKubeconfigPath();
this.kubectlBinDir = await this.kubectl.binDir();
this.kc = await this.cluster.getProxyKubeconfig();
const shell = await this.kubectl.getPath();
let args = [];