Skip to content

Commit

Permalink
Update providers/src/airflow/providers/apache/spark/hooks/spark_submi…
Browse files Browse the repository at this point in the history
…t.py
  • Loading branch information
romsharon98 authored Nov 19, 2024
1 parent 554365c commit 32b2148
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def _resolve_kerberos_principal(self, principal: str | None) -> str:
"""Resolve kerberos principal."""
# todo: remove try/exception when min airflow version is 3.0
try:
from airflow.security.kerberos import get_kerberos_principal # type: ignore[attr-defined]
from airflow.security.kerberos import get_kerberos_principal # type: ignore[attr-defined]
except ImportError:
from airflow.security.kerberos import (
get_kerberos_principle as get_kerberos_principal, # type: ignore[attr-defined]
Expand Down

0 comments on commit 32b2148

Please sign in to comment.