From b6c03e90da2ab035709758ce3f3550373e563cc3 Mon Sep 17 00:00:00 2001 From: dwreeves Date: Fri, 27 Jan 2023 20:32:34 -0500 Subject: [PATCH] Snowflake Provider - hide host from UI --- airflow/providers/snowflake/hooks/snowflake.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airflow/providers/snowflake/hooks/snowflake.py b/airflow/providers/snowflake/hooks/snowflake.py index a4f6190fec5e3..f130e52d5da91 100644 --- a/airflow/providers/snowflake/hooks/snowflake.py +++ b/airflow/providers/snowflake/hooks/snowflake.py @@ -74,7 +74,7 @@ class SnowflakeHook(DbApiHook): """ A client to interact with Snowflake. - This hook requires the snowflake_conn_id connection. The snowflake host, login, + This hook requires the snowflake_conn_id connection. The snowflake account, login, and, password field must be setup in the connection. Other inputs can be defined in the connection or hook instantiation. @@ -143,7 +143,7 @@ def get_ui_field_behaviour() -> dict[str, Any]: import json return { - "hidden_fields": ["port"], + "hidden_fields": ["port", "host"], "relabeling": {}, "placeholders": { "extra": json.dumps(