lsymds / hetznercloud-py

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

Image deletion raises exception #28

Closed BRoehrl closed 4 years ago

BRoehrl commented 5 years ago

When an image is deleted with image.delete(), a HetznerActionException is raised even though the image is successfully deleted. This is because the returned HTTP status from the API is 204 No Content. But the program only accepts status_code 200.

See: images.py line 69

thlisym commented 5 years ago

Thanks for the report. This has been fixed and will be released in the next version.

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