fix for list_servers() returning an empty list
This commit is contained in:
parent
9c8e3a7ec8
commit
913ff68e1e
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ class Client:
|
||||||
serverstree = lxml.html.fromstring(serverspage.content)
|
serverstree = lxml.html.fromstring(serverspage.content)
|
||||||
|
|
||||||
servers = serverstree.xpath(
|
servers = serverstree.xpath(
|
||||||
'//div[contains(@class,"servers ")]/div'
|
'/html/body/div[1]/main/div[3]/section/div[1]/div[2]/div'
|
||||||
'/div[@class="server-body"]/@data-id'
|
'/div[@class="server-body"]/@data-id'
|
||||||
)
|
)
|
||||||
self.refresh_servers(servers)
|
self.refresh_servers(servers)
|
||||||
|
|
Reference in a new issue