diff --git a/redash/query_runner/snowflake.py b/redash/query_runner/snowflake.py index 2456e2cf50..03534bdeaf 100644 --- a/redash/query_runner/snowflake.py +++ b/redash/query_runner/snowflake.py @@ -52,7 +52,15 @@ def configuration_schema(cls): }, "host": {"type": "string"}, }, - "order": ["account", "user", "password", "warehouse", "database", "region", "host"], + "order": [ + "account", + "user", + "password", + "warehouse", + "database", + "region", + "host", + ], "required": ["user", "password", "account", "database", "warehouse"], "secret": ["password"], "extra_options": [ @@ -87,14 +95,12 @@ def _get_connection(self): else: host = "{}.snowflakecomputing.com".format(account) - - connection = snowflake.connector.connect( user=self.configuration["user"], password=self.configuration["password"], account=account, region=region, - host = host, + host=host, ) return connection @@ -182,4 +188,4 @@ def get_schema(self, get_stats=False): return list(schema.values()) -register(Snowflake) \ No newline at end of file +register(Snowflake)