Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/warnet/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,12 @@ def format_pods(pods: list[V1Pod]) -> list[str]:
]
selected = inquirer.prompt(q, theme=GreenPassion())
if selected:
pod_name, pod_namespace = selected["pod"].split(": ")
pod_name, namespace = selected["pod"].split(": ")
else:
return # cancelled by user

try:
pod = get_pod(pod_name, namespace=pod_namespace)
pod = get_pod(pod_name, namespace=namespace)
eligible_container_names = [BITCOINCORE_CONTAINER, COMMANDER_CONTAINER]
available_container_names = [container.name for container in pod.spec.containers]
container_name = next(
Expand All @@ -423,7 +423,7 @@ def format_pods(pods: list[V1Pod]) -> list[str]:

try:
stream = pod_log(
pod_name, container_name=container_name, namespace=pod_namespace, follow=follow
pod_name, container_name=container_name, namespace=namespace, follow=follow
)
for line in stream:
click.echo(line.decode("utf-8").rstrip())
Expand Down