diff --git a/hsapi_client/nodes.py b/hsapi_client/nodes.py index efff01d..22e495a 100644 --- a/hsapi_client/nodes.py +++ b/hsapi_client/nodes.py @@ -60,7 +60,7 @@ class Node(HSAPICall): # retrieving a specific node does not return the tags # This does a real get node = self.call('get', call_path=nodeId) - return v1Node(**node.json()) + return v1Node(**node.json()['node']) def byUser(self, username: str) -> v1ListNodesResponse: nodelist = self.list() diff --git a/pyproject.toml b/pyproject.toml index 3d8316c..8fa6071 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "hsapi-client" -version = "0.9.4" +version = "0.9.6" description = "Headscale API client" authors = ["Andrea Mistrali "] license = "BSD"