Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions airflow/cli/commands/connection_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jayden-Chiu Not a blocker, How can we ensure that the output of export connection export variable and users export doesn't mismatch by any further changes in the codebase?

Can we add a single function to prepare a similar output?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@utkarsharma2 good point, could you open a new PR to do that?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hussein-awala Sure, I'll raise that.

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"]
Expand Down