Skip to content

Commit

Permalink
Small change on CreateVlanIpRange
Browse files Browse the repository at this point in the history
  • Loading branch information
radu-todirica committed Jul 26, 2023
1 parent 335147e commit 8b1336a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cloudstack/VLANService.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,12 +397,15 @@ func (s *VLANService) CreateVlanIpRange(p *CreateVlanIpRangeParams) (*CreateVlan
return nil, err
}

var r CreateVlanIpRangeResponse
//var r CreateVlanIpRangeResponse
var r struct {
Vlan CreateVlanIpRangeResponse `json:"vlan"`
}
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
}

return &r, nil
return &r.Vlan, nil
}

type CreateVlanIpRangeResponse struct {
Expand Down

0 comments on commit 8b1336a

Please sign in to comment.