Skip to content

Commit 87f119e

Browse files
committed
Support custom credentials
1 parent 9f798e0 commit 87f119e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/browsergym/workarena/install.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,11 @@
6161

6262
def SNowInstance(snow_credentials: tuple[str, str] | None = None):
6363
"""
64-
Wrapper around the standard SNowInstance that prefers explicit credentials.
64+
Wrapper around the standard SNowInstance that uses CLI-provided instance URL and password if none are provided.
6565
"""
6666
if not _CLI_INSTANCE_URL:
6767
raise RuntimeError("Installer requires --instance-url to create a SNowInstance.")
6868

69-
resolved_url = _CLI_INSTANCE_URL
7069
resolved_creds = snow_credentials
7170

7271
if resolved_creds is None:
@@ -77,7 +76,7 @@ def SNowInstance(snow_credentials: tuple[str, str] | None = None):
7776
resolved_creds = ("admin", _CLI_INSTANCE_PASSWORD)
7877

7978
return _BaseSNowInstance(
80-
snow_url=resolved_url,
79+
snow_url=_CLI_INSTANCE_URL,
8180
snow_credentials=resolved_creds,
8281
)
8382

0 commit comments

Comments
 (0)