Skip to content

Commit

Permalink
document Client.servers.rebuild change
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Jul 3, 2024
1 parent d169235 commit bbcd3a0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,12 @@ Before upgrading, make sure to resolve any deprecation warnings.
+ datacenter=Datacenter(name="fsn1-dc14"),
)
```

- [#406](https://github.com/hetznercloud/hcloud-python/pull/406): In the [`Client.servers.rebuild`](#hcloud.servers.client.ServersClient.rebuild) method, the single action return value was deprecated and is now removed. The method now returns a full response wrapping the action and an optional root password:

```diff
-action = client.servers.rebuild(server, image)
+resp = client.servers.rebuild(server, image)
+action = resp.action
+root_password = resp.root_password
```

0 comments on commit bbcd3a0

Please sign in to comment.