From 0e75a052e152cbdcdfb963aa61f26ebde3bc9678 Mon Sep 17 00:00:00 2001 From: Josh Fell Date: Mon, 15 Nov 2021 10:55:58 -0500 Subject: [PATCH] Remove unnecessary connection form customizations in Azure --- .../providers/microsoft/azure/hooks/container_volume.py | 9 --------- airflow/providers/microsoft/azure/hooks/fileshare.py | 2 -- 2 files changed, 11 deletions(-) diff --git a/airflow/providers/microsoft/azure/hooks/container_volume.py b/airflow/providers/microsoft/azure/hooks/container_volume.py index 8aae16b491a34..cd760abe80bbf 100644 --- a/airflow/providers/microsoft/azure/hooks/container_volume.py +++ b/airflow/providers/microsoft/azure/hooks/container_volume.py @@ -57,8 +57,6 @@ def get_connection_form_widgets() -> Dict[str, Any]: @staticmethod def get_ui_field_behaviour() -> Dict: """Returns custom field behaviour""" - import json - return { "hidden_fields": ['schema', 'port', 'host', "extra"], "relabeling": { @@ -66,13 +64,6 @@ def get_ui_field_behaviour() -> Dict: 'password': 'Azure Secret', }, "placeholders": { - 'extra': json.dumps( - { - "key_path": "path to json file for auth", - "key_json": "specifies json dict for auth", - }, - indent=1, - ), 'login': 'client_id (token credentials auth)', 'password': 'secret (token credentials auth)', 'extra__azure_container_volume__connection_string': 'connection string auth', diff --git a/airflow/providers/microsoft/azure/hooks/fileshare.py b/airflow/providers/microsoft/azure/hooks/fileshare.py index acfa881ddb266..7b78e3310132c 100644 --- a/airflow/providers/microsoft/azure/hooks/fileshare.py +++ b/airflow/providers/microsoft/azure/hooks/fileshare.py @@ -71,12 +71,10 @@ def get_ui_field_behaviour() -> Dict: "relabeling": { 'login': 'Blob Storage Login (optional)', 'password': 'Blob Storage Key (optional)', - 'host': 'Account Name (Active Directory Auth)', }, "placeholders": { 'login': 'account name', 'password': 'secret', - 'host': 'account url', 'extra__azure_fileshare__sas_token': 'account url or token (optional)', 'extra__azure_fileshare__connection_string': 'account url or token (optional)', 'extra__azure_fileshare__protocol': 'account url or token (optional)',