bugraoz93 commented on code in PR #49058:
URL: https://github.com/apache/airflow/pull/49058#discussion_r2037801585


##########
airflow-ctl/src/airflowctl/api/client.py:
##########
@@ -263,7 +263,9 @@ def get_client(kind: ClientKind = ClientKind.CLI):
     """
     api_client = None
     try:
-        credentials = Credentials().load()
+        credentials = Credentials()
+        if kind == ClientKind.CLI:

Review Comment:
   Maybe we can put this in credentials where we can check and act accordingly 
since kind is already defined in that file, and logic is there. What do you 
think?



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to