diff --git a/src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py b/src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py index b9d80cd0..82335f0a 100644 --- a/src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py +++ b/src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py @@ -181,7 +181,7 @@ def put_ocp_logs( archive_path = self.__ocpcli.collect_filter_archive_ocp_logs( workdir, dst_dir, - self.__kubecli.get_kubeconfig_path(), + self.__ocpcli.get_kubeconfig_path(), start_timestamp, end_timestamp, logs_filter_patterns, diff --git a/src/krkn_lib/tests/test_krkn_telemetry_openshift.py b/src/krkn_lib/tests/test_krkn_telemetry_openshift.py index e6f6847e..d8c9951a 100644 --- a/src/krkn_lib/tests/test_krkn_telemetry_openshift.py +++ b/src/krkn_lib/tests/test_krkn_telemetry_openshift.py @@ -49,3 +49,8 @@ def _test_put_ocp_logs(self): int(ten_minutes_ago.timestamp()), int(ten_minutes_fwd.timestamp()), ) + + def test_get_kubeconfig_path(self): + kube_path = self.lib_ocp.get_kubeconfig_path() + self.assertIsNotNone(kube_path) + self.assertEqual(kube_path, "~/.kube/config")