Skip to content

Tolerate a Neutron bug where quota values may be returned as strings #2125

@pierreprinetti

Description

@pierreprinetti

When its value is greater than zero, Neutron is likely to return the numerical "reserved" property as a string instead of an integer.

In Gophercloud, this event produces a fatal error:

json: cannot unmarshal string into Go struct field QuotaDetail.quota.network.reserved of type int

cf https://bugs.launchpad.net/neutron/+bug/1918565

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions