This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v2-8-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 7141d9fcc05e53b28ffb283f6260dc50bbd72f6d
Author: Jarek Potiuk <[email protected]>
AuthorDate: Tue Nov 28 14:02:13 2023 +0100

    Fix `breeze exec` to use the right project name (#35921)
    
    (cherry picked from commit 8ce35034abf0731d5a35c35239ec9812ef7add26)
---
 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
     )

Reply via email to