From 6d33c3cff5443686c7ed37eb8635e0461bb3b928 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Wed, 3 Jul 2024 12:52:41 +0200 Subject: [PATCH] fix: clean unused arguments in the `Client.servers.rebuild` method (#407) :man_facepalming: Missing changes from #406 --- hcloud/servers/client.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/hcloud/servers/client.py b/hcloud/servers/client.py index 7eb66daf..ca741ebf 100644 --- a/hcloud/servers/client.py +++ b/hcloud/servers/client.py @@ -332,15 +332,14 @@ def create_image( def rebuild( self, image: Image | BoundImage, - *, - return_response: bool = False, - ) -> RebuildResponse | BoundAction: + # pylint: disable=unused-argument + **kwargs: Any, + ) -> RebuildResponse: """Rebuilds a server overwriting its disk with the content of an image, thereby destroying all data on the target server. :param image: Image to use for the rebuilt server - :param return_response: Whether to return the full response or only the action. """ - return self._client.rebuild(self, image, return_response=return_response) + return self._client.rebuild(self, image) def change_type( self, @@ -1012,7 +1011,6 @@ def rebuild( :param server: Server to rebuild :param image: Image to use for the rebuilt server - :param return_response: Whether to return the full response or only the action. """ data: dict[str, Any] = {"image": image.id_or_name} response = self._client.request(