Skip to content

Commit

Permalink
Fix config.get (#640)
Browse files Browse the repository at this point in the history
* Fix config.get

* Update VERSION
  • Loading branch information
oeway authored Jul 23, 2024
1 parent 08d14d6 commit cf80286
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hypha/VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.15.52"
"version": "0.15.53"
}
3 changes: 2 additions & 1 deletion hypha/core/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ async def register_service(self, service, context: Optional[dict] = None, **kwar
logger.info("Registering service %s to %s", service.id, self._workspace)
rpc = await self.get_rpc()
sv = await rpc.get_remote_service(context["from"] + ":built-in")
service["config"] = service.get("config", {})
if "config" not in service:
service["config"] = {}
service["config"]["workspace"] = self._workspace
service = await sv.register_service(service, **kwargs)
assert "/" not in service["id"], "Service id must not contain '/'"
Expand Down

0 comments on commit cf80286

Please sign in to comment.