utkarsharma2 commented on a change in pull request #9907:
URL: https://github.com/apache/airflow/pull/9907#discussion_r479656958



##########
File path: airflow/cli/commands/connection_command.py
##########
@@ -25,18 +25,35 @@
 import pygments
 import yaml
 from pygments.lexers.data import YamlLexer
+from sqlalchemy.exc import SQLAlchemyError
 from sqlalchemy.orm import exc
 from tabulate import tabulate
 
-from airflow.exceptions import AirflowNotFoundException
+from airflow.exceptions import AirflowException, AirflowNotFoundException
 from airflow.hooks.base_hook import BaseHook
 from airflow.models import Connection
+from airflow.secrets.local_filesystem import load_connections
 from airflow.utils import cli as cli_utils
 from airflow.utils.cli import should_use_colors
 from airflow.utils.code_utils import get_terminal_formatter
 from airflow.utils.session import create_session
 
 
+def _prep_msg(msg, conn):
+    """Prepare status messages for connections"""
+
+    msg = msg.format(conn_id=conn.conn_id,

Review comment:
       Added to the PR.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to