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 b6aaf9e2fc Allow multiline text in private key field for Snowflake 
(#23066)
b6aaf9e2fc is described below

commit b6aaf9e2fc40724c9904504e121633baab2396e1
Author: Kamil BreguĊ‚a <[email protected]>
AuthorDate: Sun May 1 13:11:13 2022 +0200

    Allow multiline text in private key field for Snowflake (#23066)
---
 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 c7efb25642..75ddaa59de 100644
--- a/airflow/providers/snowflake/hooks/snowflake.py
+++ b/airflow/providers/snowflake/hooks/snowflake.py
@@ -86,7 +86,7 @@ class SnowflakeHook(DbApiHook):
     @staticmethod
     def get_connection_form_widgets() -> Dict[str, Any]:
         """Returns connection widgets to add to connection form"""
-        from flask_appbuilder.fieldwidgets import BS3PasswordFieldWidget, 
BS3TextFieldWidget
+        from flask_appbuilder.fieldwidgets import BS3TextAreaFieldWidget, 
BS3TextFieldWidget
         from flask_babel import lazy_gettext
         from wtforms import BooleanField, StringField
 
@@ -102,7 +102,7 @@ class SnowflakeHook(DbApiHook):
                 lazy_gettext('Private key (Path)'), widget=BS3TextFieldWidget()
             ),
             "extra__snowflake__private_key_content": StringField(
-                lazy_gettext('Private key (Text)'), 
widget=BS3PasswordFieldWidget()
+                lazy_gettext('Private key (Text)'), 
widget=BS3TextAreaFieldWidget()
             ),
             "extra__snowflake__insecure_mode": BooleanField(
                 label=lazy_gettext('Insecure mode'), description="Turns off 
OCSP certificate checks"

Reply via email to