Skip to content

Commit fd70185

Browse files
committed
Migrate dbt provider to use airflow.sdk.configuration.conf
1 parent c8aa74a commit fd70185

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

providers/dbt/cloud/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
"apache-airflow-providers-http",
6464
"asgiref>=2.3.0",
6565
"aiohttp>=3.9.2",

providers/dbt/cloud/src/airflow/providers/dbt/cloud/operators/dbt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from pathlib import Path
2424
from typing import TYPE_CHECKING, Any
2525

26-
from airflow.configuration import conf
26+
from airflow.providers.common.compat.sdk import conf
2727
from airflow.providers.common.compat.sdk import BaseOperator, BaseOperatorLink, XCom
2828
from airflow.providers.dbt.cloud.hooks.dbt import (
2929
DbtCloudHook,

providers/dbt/cloud/src/airflow/providers/dbt/cloud/sensors/dbt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from functools import cached_property
2121
from typing import TYPE_CHECKING, Any
2222

23-
from airflow.configuration import conf
23+
from airflow.providers.common.compat.sdk import conf
2424
from airflow.providers.common.compat.sdk import AirflowException, BaseSensorOperator
2525
from airflow.providers.dbt.cloud.hooks.dbt import DbtCloudHook, DbtCloudJobRunException, DbtCloudJobRunStatus
2626
from airflow.providers.dbt.cloud.triggers.dbt import DbtCloudRunJobTrigger

0 commit comments

Comments
 (0)