Skip to content

Commit

Permalink
tmplog
Browse files Browse the repository at this point in the history
  • Loading branch information
pinheadmz committed Aug 22, 2024
1 parent ee3a6ee commit d8ce7cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/warnet/cli/bitcoin.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def grep_logs(pattern: str, show_k8s_timestamps: bool, no_sort: bool):
# Get logs from the specific container
command = f"kubectl logs {pod_name} -c {container_name} --timestamps"
logs = run_command(command)

if logs is not False:
# Process logs
for log_entry in logs.splitlines():
Expand Down
2 changes: 1 addition & 1 deletion src/warnet/cli/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_dynamic_client() -> DynamicClient:

def get_pods() -> V1PodList:
sclient = get_static_client()
return sclient.list_namespaced_pod("warnet")
return sclient.list_namespaced_pod(get_default_namespace())


def get_mission(mission: str) -> list[V1PodList]:
Expand Down

0 comments on commit d8ce7cc

Please sign in to comment.