This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 8ce35034ab Fix `breeze exec` to use the right project name (#35921)
8ce35034ab is described below
commit 8ce35034abf0731d5a35c35239ec9812ef7add26
Author: Jarek Potiuk <[email protected]>
AuthorDate: Tue Nov 28 14:02:13 2023 +0100
Fix `breeze exec` to use the right project name (#35921)
---
dev/breeze/src/airflow_breeze/commands/developer_commands.py | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/dev/breeze/src/airflow_breeze/commands/developer_commands.py
b/dev/breeze/src/airflow_breeze/commands/developer_commands.py
index 2f22b5cbef..fcd3e92b51 100644
--- a/dev/breeze/src/airflow_breeze/commands/developer_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/developer_commands.py
@@ -922,7 +922,17 @@ def find_airflow_container() -> str | None:
shell_params = ShellParams()
check_docker_resources(shell_params.airflow_image_name)
shell_params.print_badge_info()
- cmd = ["docker", "compose", "ps", "--all", "--filter", "status=running",
"airflow"]
+ cmd = [
+ "docker",
+ "compose",
+ "--project-name",
+ shell_params.project_name,
+ "ps",
+ "--all",
+ "--filter",
+ "status=running",
+ "airflow",
+ ]
docker_compose_ps_command = run_command(
cmd, text=True, capture_output=True, check=False,
env=shell_params.env_variables_for_docker_commands
)