Skip to content

Commit 6434724

Browse files
committed
Fix client/external so that Project API get_client works
That is, set _project_id.
1 parent 34a995c commit 6434724

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/hopsworks/client/external.py

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ def __init__(
4141
self._port = port
4242
self._base_url = "https://" + self._host + ":" + str(self._port)
4343
self._project_name = project
44+
if project is not None:
45+
project_info = self._get_project_info(project)
46+
self._project_id = str(project_info["projectId"])
47+
else:
48+
self._project_id = None
4449

4550
if api_key_value is not None:
4651
api_key = api_key_value

0 commit comments

Comments
 (0)