scaleway-sdk-python icon indicating copy to clipboard operation
scaleway-sdk-python copied to clipboard

list_images: Missing fields in extra_volumes

Open gg3nx opened this issue 1 year ago • 0 comments

Versions used:

scaleway               2.6.0           Scaleway SDK for Python
scaleway-core          2.6.0           Scaleway SDK for Python

When using list_images from instance.v1, unmarshall_Volume fails with the following error:

TypeError: Volume.__init__() missing 5 required positional arguments: 'organization', 'project', 'tags', 'state', and 'zone'

According to https://www.scaleway.com/en/developers/api/instance/#path-images-list-instance-images , these fields should be present in the response from the API.

When testing with curl on https://api.scaleway.com/instance/v1/zones/fr-par-2/images?public=no, it looks like these fields are really missing:

      "extra_volumes": {
        "1": {
          "id": "1f034b3b-XXXX-XXXX-XXXX-81b4554d8090",
          "name": "XXX",
          "volume_type": "unified",
          "size": 300000000000
        }
      },

Is it a bug in the SDK or in the API?

gg3nx avatar Aug 29 '24 13:08 gg3nx