Skip to content

Commit

Permalink
fix: clean unused arguments in the Client.servers.rebuild method
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Jul 3, 2024
1 parent cf08842 commit e16d59e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions hcloud/servers/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,15 +332,14 @@ def create_image(
def rebuild(
self,
image: Image | BoundImage,
*,
return_response: bool = False,
# pylint: disable=unused-argument
**kwargs: Any,
) -> RebuildResponse | BoundAction:
"""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,
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit e16d59e

Please sign in to comment.