LKDevelopment / hetzner-cloud-php-sdk

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

Function getByName() for Images always returns x86 image #110

Closed elindydotcom closed 6 months ago

elindydotcom commented 7 months ago

The function getByName() in the images model always returns the first value which is usually the x86 image.

Since you can now get two images from the same name (one for arm and one for x86), one of two things might need to be changed:

Maybe both needs to be done?

OR, the image names need to be changed - eg: 'ubuntu-22.04' and 'ubuntu-22.04-arm' but that would have to be done by Hetzner's ops team. So likely more practical to implement one or both the options above?

LKaemmerling commented 6 months ago

Hey @elindydotcom,

thank you, good catch! I added a new (optional) parameter to the GetByName Method on Images. This was just released as v2.7.0.