diff --git a/tobiko/podified/_topology.py b/tobiko/podified/_topology.py index e9f86bda2..1878c7166 100644 --- a/tobiko/podified/_topology.py +++ b/tobiko/podified/_topology.py @@ -211,8 +211,6 @@ class PodifiedTopology(rhosp.RhospTopology): 'check_function': iperf3.check_iperf3_client_results } if not ssh_client: - LOG.debug("Running iperf3 client in the POD is " - "implemented yet.") kwargs['start_function'] = _openshift.start_iperf3 kwargs['liveness_function'] = _openshift.iperf3_pod_alive kwargs['stop_function'] = _openshift.stop_iperf3_client diff --git a/tobiko/shell/iperf3/_execute.py b/tobiko/shell/iperf3/_execute.py index b9347139d..549944e69 100644 --- a/tobiko/shell/iperf3/_execute.py +++ b/tobiko/shell/iperf3/_execute.py @@ -246,7 +246,8 @@ def check_iperf3_client_results(address: typing.Union[str, netaddr.IPAddress], def remove_log_lines_end_json_str(json_str: str) -> str: lines = json_str.splitlines() while lines: - if lines[-1].strip() == "}": + last_line = lines[-1].strip() + if len(last_line) > 0 and last_line[-1] == "}": # Stop when we find } break # Remove last line, remove possible error logs