You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by hu...@apache.org on 2023/09/27 09:15:11 UTC
[airflow] branch main updated: fix connections exported output (#34640)
This is an automated email from the ASF dual-hosted git repository.
husseinawala 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 a5f5e2fc7f fix connections exported output (#34640)
a5f5e2fc7f is described below
commit a5f5e2fc7f7b7f461458645c8826f015c1fa8d78
Author: Jayden Chiu <57...@users.noreply.github.com>
AuthorDate: Wed Sep 27 05:15:03 2023 -0400
fix connections exported output (#34640)
---
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 dbc6cc583b..90d7bd553c 100644
--- a/airflow/cli/commands/connection_command.py
+++ b/airflow/cli/commands/connection_command.py
@@ -197,9 +197,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"]