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.
This commit is contained in:
Bas Nijholt
2026-02-01 12:32:54 -08:00
parent 445a299370
commit a0f4696bb5

View File

@@ -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)