Skip to content

Commit 6a6db2a

Browse files
authored
Merge pull request #120 from ServiceNow/fix-issue-119-instance-consistency
Fix instance consistency in KnowledgeBaseSearchTask
2 parents 1119dda + 6d4194f commit 6a6db2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browsergym/workarena/tasks/knowledge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def __init__(
8181
)
8282
else:
8383
_, requires_install, requires_delete = check_knowledge_base(
84-
SNowInstance(), # instance would be the non-admin instance here and this might break in case user does not have required permissions
84+
self.instance, # Use the instance passed to the task
8585
kb_name=KB_NAME,
8686
kb_data=self.kb_entries, # Need admin permissions to check
8787
)

0 commit comments

Comments
 (0)