You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2023/10/05 10:46:13 UTC
[airflow] 26/44: fix connections exported output (#34640)
This is an automated email from the ASF dual-hosted git repository.
ephraimanierobi pushed a commit to branch v2-7-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit af5c86e3df6a8809c0e19e53afcd6441a9b95e5d
Author: Jayden Chiu <57...@users.noreply.github.com>
AuthorDate: Wed Sep 27 05:15:03 2023 -0400
fix connections exported output (#34640)
(cherry picked from commit a5f5e2fc7f7b7f461458645c8826f015c1fa8d78)
---
airflow/cli/commands/connection_command.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/airflow/cli/commands/connection_command.py b/airflow/cli/commands/connection_command.py
index c00e09087d..2ff7c50ae2 100644
--- a/airflow/cli/commands/connection_command.py
+++ b/airflow/cli/commands/connection_command.py
@@ -203,9 +203,9 @@ def connections_export(args):
f.write(msg)
if file_is_stdout:
- print("\nConnections successfully exported.", file=sys.stderr)
+ print(f"\n{len(connections)} connections successfully exported.", file=sys.stderr)
else:
- print(f"Connections successfully exported to {args.file.name}.")
+ print(f"{len(connections)} connections successfully exported to {args.file.name}.")
alternative_conn_specs = ["conn_type", "conn_host", "conn_login", "conn_password", "conn_schema", "conn_port"]