Skip to content

Commit 6d33c3c

Browse files
authored
fix: clean unused arguments in the Client.servers.rebuild method (#407)
🤦‍♂️ Missing changes from #406
1 parent 66a0f54 commit 6d33c3c

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

hcloud/servers/client.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,14 @@ def create_image(
332332
def rebuild(
333333
self,
334334
image: Image | BoundImage,
335-
*,
336-
return_response: bool = False,
337-
) -> RebuildResponse | BoundAction:
335+
# pylint: disable=unused-argument
336+
**kwargs: Any,
337+
) -> RebuildResponse:
338338
"""Rebuilds a server overwriting its disk with the content of an image, thereby destroying all data on the target server.
339339
340340
:param image: Image to use for the rebuilt server
341-
:param return_response: Whether to return the full response or only the action.
342341
"""
343-
return self._client.rebuild(self, image, return_response=return_response)
342+
return self._client.rebuild(self, image)
344343

345344
def change_type(
346345
self,
@@ -1012,7 +1011,6 @@ def rebuild(
10121011
10131012
:param server: Server to rebuild
10141013
:param image: Image to use for the rebuilt server
1015-
:param return_response: Whether to return the full response or only the action.
10161014
"""
10171015
data: dict[str, Any] = {"image": image.id_or_name}
10181016
response = self._client.request(

0 commit comments

Comments
 (0)