From f09b527f00c1eb022cb19864060dbed7efb471fe Mon Sep 17 00:00:00 2001 From: Jayden Chiu Date: Tue, 26 Sep 2023 22:49:18 -0400 Subject: [PATCH] fix connections exported output --- 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 dbc6cc583ba47..90d7bd553ceb7 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"]