Skip to content

Commit

Permalink
fixing typo in krkn_telemetry_openshift (#127)
Browse files Browse the repository at this point in the history
Signed-off-by: Tullio Sebastiani <[email protected]>
  • Loading branch information
tsebastiani authored Oct 4, 2024
1 parent 2b7c569 commit c015d02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions src/krkn_lib/tests/test_krkn_telemetry_openshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit c015d02

Please sign in to comment.