You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2021/11/16 15:14:47 UTC
[airflow] branch main updated: Remove unnecessary connection form customizations in Azure (#19595)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 11e73d2 Remove unnecessary connection form customizations in Azure (#19595)
11e73d2 is described below
commit 11e73d2db192e8abb551a728ca5c2d5dcf69d5d8
Author: Josh Fell <48...@users.noreply.github.com>
AuthorDate: Tue Nov 16 10:14:25 2021 -0500
Remove unnecessary connection form customizations in Azure (#19595)
---
airflow/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 8aae16b..cd760ab 100644
--- a/airflow/providers/microsoft/azure/hooks/container_volume.py
+++ b/airflow/providers/microsoft/azure/hooks/container_volume.py
@@ -57,8 +57,6 @@ class AzureContainerVolumeHook(BaseHook):
@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 @@ class AzureContainerVolumeHook(BaseHook):
'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 acfa881..7b78e33 100644
--- a/airflow/providers/microsoft/azure/hooks/fileshare.py
+++ b/airflow/providers/microsoft/azure/hooks/fileshare.py
@@ -71,12 +71,10 @@ class AzureFileShareHook(BaseHook):
"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)',