Skip to content

list_images: Missing fields in extra_volumes #636

Closed
@gg3nx

Description

@gg3nx

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?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginstanceInstance issues, bugs and feature requests

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions