romsharon98 commented on code in PR #44150:
URL: https://github.com/apache/airflow/pull/44150#discussion_r1848227329
##########
providers/src/airflow/providers/apache/spark/hooks/spark_submit.py:
##########
@@ -518,9 +518,15 @@ def _build_track_driver_status_command(self) -> list[str]:
def _resolve_kerberos_principal(self, principal: str | None) -> str:
"""Resolve kerberos principal."""
- from airflow.security.kerberos import get_kerberos_principle
+ # todo: remove try/exception when min airflow version is 3.0
+ try:
+ from airflow.security.kerberos import get_kerberos_principal #
type: ignore[attr-defined]
Review Comment:
```suggestion
from airflow.security.kerberos import get_kerberos_principal #
type: ignore[attr-defined]
```
--
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]