From a0f4696bb587ada89bcbd948d221837793f0987c Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Sun, 1 Feb 2026 12:32:54 -0800 Subject: [PATCH] fix: Apply filter_host to logs and ps commands as well Same bug as up/down: when using `-H host` with multi-host stacks, logs and ps would show results from all hosts instead of just the filtered host. --- src/compose_farm/cli/monitoring.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compose_farm/cli/monitoring.py b/src/compose_farm/cli/monitoring.py index 0c9a119..0512172 100644 --- a/src/compose_farm/cli/monitoring.py +++ b/src/compose_farm/cli/monitoring.py @@ -248,7 +248,7 @@ def logs( cmd += " -f" if service: cmd += f" {service}" - results = run_async(run_on_stacks(cfg, stack_list, cmd)) + results = run_async(run_on_stacks(cfg, stack_list, cmd, filter_host=host)) report_results(results) @@ -272,7 +272,7 @@ def ps( print_error("--service requires exactly one stack") raise typer.Exit(1) cmd = f"ps {service}" if service else "ps" - results = run_async(run_on_stacks(cfg, stack_list, cmd)) + results = run_async(run_on_stacks(cfg, stack_list, cmd, filter_host=host)) report_results(results)