From 111e82634a807885a8f9b74d191505284a4dd698 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Mon, 23 Dec 2024 15:24:39 +0100 Subject: [PATCH] Correctly import isabs from os.path (#45178) The #45139 imported isabs from "airflow.www.app" - but isabs has been added there fairly recently and it is anyhow stdlib's os.path isabs - so it should be imported from there. This breaks fab 1.5.2 backport compatibility tests, so we need to cherry-pick it there alongside #45139 (cherry picked from commit 7002966ccf02fca59c3ac4a604a6ee34cc2cca26) --- .../airflow/providers/fab/auth_manager/cli_commands/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/providers/src/airflow/providers/fab/auth_manager/cli_commands/utils.py b/providers/src/airflow/providers/fab/auth_manager/cli_commands/utils.py index 30963f5cf1fdd..e848c2094ce5b 100644 --- a/providers/src/airflow/providers/fab/auth_manager/cli_commands/utils.py +++ b/providers/src/airflow/providers/fab/auth_manager/cli_commands/utils.py @@ -20,6 +20,7 @@ import os from contextlib import contextmanager from functools import lru_cache +from os.path import isabs from typing import TYPE_CHECKING, Generator from flask import Flask @@ -27,7 +28,7 @@ import airflow from airflow.configuration import conf from airflow.exceptions import AirflowConfigException -from airflow.www.app import isabs, make_url +from airflow.www.app import make_url from airflow.www.extensions.init_appbuilder import init_appbuilder from airflow.www.extensions.init_session import init_airflow_session_interface from airflow.www.extensions.init_views import init_plugins