Fix backfillips method

This commit is contained in:
Andrea Mistrali 2024-09-10 08:12:52 +02:00
parent 53a0269fa0
commit db7be9e8e1
Signed by: andre
SSH Key Fingerprint: SHA256:/D780pZnuHMQ8xFII5lAtXWy8zdowtBhgWjwi88p+lI
2 changed files with 4 additions and 3 deletions

View File

@ -92,7 +92,8 @@ class Node(HSAPICall):
return v1NodeResponse(**response.json())
# Broken on server
def backfillips(self, confirmed: bool = True) -> v1BackfillNodeIPsResponse:
def backfillips(self) -> v1BackfillNodeIPsResponse:
response = self.call(
'post', f'/backfillips?confirmed={confirmed}')
'post', f'backfillips',
query=dict(confirmed=True))
return v1BackfillNodeIPsResponse(**response.json())

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "hsapi-client"
version = "0.9.6"
version = "0.9.7"
description = "Headscale API client"
authors = ["Andrea Mistrali <andrea@mistrali.pw>"]
license = "BSD"