Skip to content

Commit

Permalink
fix: clean unused arguments in the Client.servers.rebuild method (#407
Browse files Browse the repository at this point in the history
)

🤦‍♂️ Missing changes from #406
  • Loading branch information
jooola committed Jul 3, 2024
1 parent 66a0f54 commit 6d33c3c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 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,
) -> 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,
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 6d33c3c

Please sign in to comment.