LKDevelopment / hetzner-cloud-php-sdk

A PHP SDK for the Hetzner Cloud API
MIT License
104 stars 51 forks source link

Fix: apparently name can be "null" #44

Closed till closed 4 years ago

till commented 4 years ago

Hetzner support added an ISO for me, but I can't pull it up using your code because the name is "null". Not sure if this is a "bug" in your code, or if it's how they added my ISO in and a bug on their end. But adding = null fixes it. ;-)

till commented 4 years ago

Here is a screenshot from their console (to demo how to trigger this): image

LKaemmerling commented 4 years ago

Hey, thank you for this! Could you change it here: https://github.com/LKDevelopment/hetzner-cloud-php-sdk/blob/master/src/Models/Servers/Server.php#L450 to use the ID if the name is null? Then the call would also work.

till commented 4 years ago

@LKaemmerling is this what you're looking for?

LKaemmerling commented 4 years ago

Thank you!

till commented 4 years ago

@LKaemmerling thank you!