Skip to content

Commit

Permalink
Adding getRawValue to CreateZone api (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
poddm committed Aug 4, 2023
1 parent 139ce08 commit 71cac07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cloudstack/ZoneService.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,10 @@ func (s *ZoneService) CreateZone(p *CreateZoneParams) (*CreateZoneResponse, erro
return nil, err
}

if resp, err = getRawValue(resp); err != nil {
return nil, err
}

var r CreateZoneResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
Expand Down
1 change: 1 addition & 0 deletions generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,7 @@ func (s *service) generateNewAPICallFunc(a *API) {
"CreateSecurityGroup",
"CreateServiceOffering",
"CreateUser",
"CreateZone",
"DedicateGuestVlanRange",
"EnableUser",
"GetVirtualMachineUserData",
Expand Down

0 comments on commit 71cac07

Please sign in to comment.