potiuk commented on PR #36794:
URL: https://github.com/apache/airflow/pull/36794#issuecomment-1923733802

   > @potiuk I tried copying daemon func but it goes way down where so many 
utils are not present.
   > 
   > Its better if someone with better codebase understanding do this. Let me 
know if I should create new PR with fix in core cli
   
   Actually I realized there is a simple way you can get back to what it was 
before. This command in Provider will be only useful since Airflow 2.9 so you 
can do something similar, when importing the daemon_utils to what is done in 
auth manager:
   
   ```
   try:
       from airflow.auth.managers.base_auth_manager import BaseAuthManager, 
ResourceMethod
   except ImportError:
       raise AirflowOptionalProviderFeatureException(
           "Failed to import BaseUser. This feature is only available in 
Airflow versions >= 2.8.0"
       )
   ```
   


-- 
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: [email protected]

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

Reply via email to