You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2020/11/19 14:55:58 UTC
[airflow] branch v1-10-test updated: Fix KubernetesExecutor import
in views.py
This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v1-10-test by this push:
new c730675 Fix KubernetesExecutor import in views.py
c730675 is described below
commit c730675da52c1cce2710dcaec88855708bdc1eba
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Thu Nov 19 14:50:01 2020 +0000
Fix KubernetesExecutor import in views.py
closes https://github.com/apache/airflow/issues/10858
---
airflow/contrib/executors/kubernetes_executor.py | 2 +-
airflow/www/views.py | 2 +-
airflow/www_rbac/views.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/airflow/contrib/executors/kubernetes_executor.py b/airflow/contrib/executors/kubernetes_executor.py
index 416b2d7..17b5ef6 100644
--- a/airflow/contrib/executors/kubernetes_executor.py
+++ b/airflow/contrib/executors/kubernetes_executor.py
@@ -17,4 +17,4 @@
# specific language governing permissions and limitations
# under the License.
-from airflow.executors import kubernetes_executor # noqa
+from airflow.executors.kubernetes_executor import KubernetesExecutor # noqa
diff --git a/airflow/www/views.py b/airflow/www/views.py
index d34df93..fdb674d 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -1155,7 +1155,7 @@ class Airflow(AirflowViewMixin, BaseView):
pass
try:
- from airflow.contrib.executors.kubernetes_executor import KubernetesExecutor
+ from airflow.executors.kubernetes_executor import KubernetesExecutor
valid_kubernetes_config = isinstance(executor, KubernetesExecutor)
except ImportError:
pass
diff --git a/airflow/www_rbac/views.py b/airflow/www_rbac/views.py
index 793748a..a7555f2 100644
--- a/airflow/www_rbac/views.py
+++ b/airflow/www_rbac/views.py
@@ -975,7 +975,7 @@ class Airflow(AirflowBaseView):
pass
try:
- from airflow.contrib.executors.kubernetes_executor import KubernetesExecutor
+ from airflow.executors.kubernetes_executor import KubernetesExecutor
valid_kubernetes_config = isinstance(executor, KubernetesExecutor)
except ImportError:
pass