You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`flavorDB "github.com/gophercloud/gophercloud/openstack/db/v1/flavors"`
func (m *OpenstackManager) GetFlavorList() ([]flavors.Flavor, error) {
var flavorList []flavors.Flavor
err := flavorDB.List(m.computeServiceClient).EachPage(func(p pagination.Page) (bool, error) {
log.Println("Execution will not reach this point")
fList, err := flavors.ExtractFlavors(p)
if err != nil {
return false, err
}
flavorList = append(flavorList, fList...)
return true, nil
})
if err != nil {
return nil, err
}
return flavorList, nil
}
I`m getting an error in EachPage function and right away.
Error message: json: cannot unmarshal string into Go struct field Flavor.flavors.id of type int
The text was updated successfully, but these errors were encountered:
Thank you for reporting your first issue! Be sure that we will be looking at it, but keep in mind
this sometimes takes a while.
Please let the maintainers know if your issue has not got enough attention after a few days.
If any doubt, please consult our issue tutorial.
I`m getting an error in EachPage function and right away.
Error message: json: cannot unmarshal string into Go struct field Flavor.flavors.id of type int
The text was updated successfully, but these errors were encountered: