Skip to content

Commit

Permalink
Allow multiline text in private key field for Snowflake (apache#23066)
Browse files Browse the repository at this point in the history
  • Loading branch information
mik-laj authored May 1, 2022
1 parent 6221611 commit b6aaf9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow/providers/snowflake/hooks/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -102,7 +102,7 @@ def get_connection_form_widgets() -> Dict[str, Any]:
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"
Expand Down

0 comments on commit b6aaf9e

Please sign in to comment.