Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion openstack/csbs/v1/policies/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import (
)

type ListOpts struct {
// id and status are not supported in API, will filtered by FilterPolicies
ID string `json:"id"`
Name string `q:"name"`
Status string `json:"status"`
Name string `q:"name"`
Sort string `q:"sort"`
Limit int `q:"limit"`
Marker string `q:"marker"`
Expand Down
4 changes: 2 additions & 2 deletions openstack/csbs/v1/policies/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ func (r *OperationDefinitionResp) UnmarshalJSON(b []byte) error {

if err != nil {
switch err.(type) {
case *json.UnmarshalTypeError: //check if type error occurred (handles if no type conversion is required for cloud like Huawei)

case *json.UnmarshalTypeError:
// handle type error to keep compatible with multi types
var s struct {
tmp
MaxBackups int `json:"max_backups"`
Expand Down