Skip to content

Commit 653b571

Browse files
committed
SNOW-2306184: config refactor - allow empty connections
1 parent 2479227 commit 653b571

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/snowflake/cli/api/config_provider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@ def _get_connection_dict_internal(self, connection_name: str) -> Dict[str, Any]:
448448
connections[connection_name], dict
449449
):
450450
result = connections[connection_name]
451-
if result:
452-
return result
451+
# Allow empty connections - they're valid (just have no parameters set)
452+
return result
453453

454454
raise MissingConfigurationError(
455455
f"Connection {connection_name} is not configured"

0 commit comments

Comments
 (0)