Skip to content

Commit 0eab2c2

Browse files
authored
Migrate imap provider to use airflow.sdk.configuration.conf (#59994)
1 parent b391597 commit 0eab2c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

providers/imap/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ requires-python = ">=3.10"
5959
# After you modify the dependencies, and rebuild your Breeze CI image with ``breeze ci-image build``
6060
dependencies = [
6161
"apache-airflow>=2.11.0",
62-
"apache-airflow-providers-common-compat>=1.10.1",
62+
"apache-airflow-providers-common-compat>=1.10.1", # use next version
6363
]
6464

6565
[dependency-groups]

providers/imap/src/airflow/providers/imap/hooks/imap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _build_client(self, conn: Connection) -> imaplib.IMAP4_SSL | imaplib.IMAP4:
8787
host = conn.host or ""
8888
use_ssl = conn.extra_dejson.get("use_ssl", True)
8989
if use_ssl:
90-
from airflow.configuration import conf
90+
from airflow.providers.common.compat.sdk import conf
9191

9292
extra_ssl_context = conn.extra_dejson.get("ssl_context", None)
9393
if extra_ssl_context:

0 commit comments

Comments
 (0)