Hotfix for settings and SSH shell routine
Related-PROD: PROD-36588
Change-Id: I63d6ae4a888dad81ae886c9b1e2bb5ea41139772
diff --git a/cfg_checker/nodes.py b/cfg_checker/nodes.py
index 0559132..cf2bdf7 100644
--- a/cfg_checker/nodes.py
+++ b/cfg_checker/nodes.py
@@ -694,12 +694,13 @@
_h = self.nodes[node]['internalip']
_p = 22
if self.kube.is_local or self.kube.config.ssh_direct:
- return None,
- self._get_ssh_shell(
+ logger.debug("Getting shell with no port forward")
+ return [None, self._get_ssh_shell(
_h, _u, _k, _p, silent, piped,
timeout=self.kube.config.ssh_connect_timeout
- )
+ )]
else:
+ logger.debug("Getting shell with with forward")
_fh = "localhost"
_p = 10022 if not fport else fport
_pfwd = PortForward(
@@ -720,7 +721,7 @@
piped,
timeout=self.kube.config.ssh_connect_timeout
)
- return _pfwd, _ssh
+ return [_pfwd, _ssh]
def execute_script_on_node(self, node, script_filename, args=[]):
# Prepare path