mwojtyczka commented on code in PR #63518:
URL: https://github.com/apache/airflow/pull/63518#discussion_r2934075760
##########
providers/databricks/src/airflow/providers/databricks/hooks/databricks_base.py:
##########
@@ -599,8 +598,28 @@ def _get_k8s_projected_volume_token(self) -> str:
except PermissionError as e:
raise AirflowException(f"Permission denied reading token from
{projected_token_path}") from e
+ @staticmethod
+ def _get_aiofiles():
+ """
+ Lazy-import aiofiles for async Kubernetes in-cluster authentication.
+
+ :return: The aiofiles module.
+ :raises AirflowOptionalProviderFeatureException: If aiofiles is not
installed.
+ """
+ try:
+ import aiofiles
+
+ return aiofiles
+ except (ImportError, ModuleNotFoundError) as err:
Review Comment:
fixed
--
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]