Skip to content

Commit 3864c2b

Browse files
committed
SNOW-2306184: config refactor - restore temp conn
1 parent e6e931d commit 3864c2b

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/snowflake/cli/api/connections.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,9 @@ def build_connection(self):
160160
module="snowflake.connector.config_manager",
161161
)
162162

163-
# Get connection parameters but exclude connection_name
164-
# The Snowflake connector validates connection_name against its own
165-
# config manager (only reads config.toml), which doesn't know about
166-
# connections from SnowSQL config files. We handle connection resolution
167-
# ourselves, so don't let the connector validate it.
163+
# Get connection parameters and pass them directly to connect_to_snowflake
164+
# This restores the original behavior before the change that enforced temporary_connection
168165
conn_params = self.present_values_as_dict()
169-
conn_params.pop("connection_name", None)
170-
171-
# If we removed connection_name, mark as temporary_connection
172-
# so the connector doesn't require it
173-
if "connection_name" not in conn_params:
174-
conn_params["temporary_connection"] = True
175166

176167
return connect_to_snowflake(**conn_params)
177168

0 commit comments

Comments
 (0)