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 6f57d42833 Fix output of error in K8s venv installation (#28322)
6f57d42833 is described below
commit 6f57d4283341d76330ba0dea3db79c3eca9055b1
Author: Jarek Potiuk <[email protected]>
AuthorDate: Tue Dec 13 14:49:33 2022 +0100
Fix output of error in K8s venv installation (#28322)
---
dev/breeze/src/airflow_breeze/utils/kubernetes_utils.py | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/dev/breeze/src/airflow_breeze/utils/kubernetes_utils.py
b/dev/breeze/src/airflow_breeze/utils/kubernetes_utils.py
index 3258be65a2..2b84090008 100644
--- a/dev/breeze/src/airflow_breeze/utils/kubernetes_utils.py
+++ b/dev/breeze/src/airflow_breeze/utils/kubernetes_utils.py
@@ -309,14 +309,10 @@ def _install_packages_in_k8s_virtualenv(with_constraints:
bool):
f"constraints-{sys.version_info.major}.{sys.version_info.minor}.txt",
]
)
- install_packages_result = run_command(
- install_command,
- check=False,
- capture_output=True,
- )
+ install_packages_result = run_command(install_command, check=False,
capture_output=True, text=True)
if install_packages_result.returncode != 0:
get_console().print(
- f"[error]Error when updating pip to {PIP_VERSION}:[/]\n"
+ f"[error]Error when installing packages from :
{K8S_REQUIREMENTS.resolve()}[/]\n"
f"{install_packages_result.stdout}\n{install_packages_result.stderr}"
)
return install_packages_result