lsymds / hetznercloud-py

Python SDK for the new Hetzner cloud
MIT License
30 stars 12 forks source link

Servers' rebuild_from_image function is now returning root password #37

Closed levnikmyskin closed 4 years ago

levnikmyskin commented 5 years ago

Hi there :) This pull request consists of a very simple commit: the rebuild_from_image function in the servers.py file was only returning the action but not the root_password (which is actually returned from Hetzner, according to the API documentation).
With this single commit, that function is now returning the password as well. I guess this could break some code, since the function is now returning a tuple and not a single value.
Let me know if you need any further explanation!

lsymds commented 4 years ago

Hi! You should look into using the official HCloud Python library as this one is deprecated (and has been for a while now).

https://github.com/hetznercloud/hcloud-python