Bug fix
This commit is contained in:
parent
9462f236b4
commit
53a0269fa0
|
@ -60,7 +60,7 @@ class Node(HSAPICall):
|
||||||
# retrieving a specific node does not return the tags
|
# retrieving a specific node does not return the tags
|
||||||
# This does a real get
|
# This does a real get
|
||||||
node = self.call('get', call_path=nodeId)
|
node = self.call('get', call_path=nodeId)
|
||||||
return v1Node(**node.json())
|
return v1Node(**node.json()['node'])
|
||||||
|
|
||||||
def byUser(self, username: str) -> v1ListNodesResponse:
|
def byUser(self, username: str) -> v1ListNodesResponse:
|
||||||
nodelist = self.list()
|
nodelist = self.list()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "hsapi-client"
|
name = "hsapi-client"
|
||||||
version = "0.9.4"
|
version = "0.9.6"
|
||||||
description = "Headscale API client"
|
description = "Headscale API client"
|
||||||
authors = ["Andrea Mistrali <andrea@mistrali.pw>"]
|
authors = ["Andrea Mistrali <andrea@mistrali.pw>"]
|
||||||
license = "BSD"
|
license = "BSD"
|
||||||
|
|
Loading…
Reference in New Issue