You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2023/08/04 20:08:05 UTC
[cloudstack-go] branch main updated: Adding getRawValue to CreateZone api (#68)
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-go.git
The following commit(s) were added to refs/heads/main by this push:
new 71cac07 Adding getRawValue to CreateZone api (#68)
71cac07 is described below
commit 71cac076895025f9c830e4b7fbe0322a4dd369e0
Author: poddm <88...@users.noreply.github.com>
AuthorDate: Fri Aug 4 13:07:59 2023 -0700
Adding getRawValue to CreateZone api (#68)
---
cloudstack/ZoneService.go | 4 ++++
generate/generate.go | 1 +
2 files changed, 5 insertions(+)
diff --git a/cloudstack/ZoneService.go b/cloudstack/ZoneService.go
index 96359a2..d23b773 100644
--- a/cloudstack/ZoneService.go
+++ b/cloudstack/ZoneService.go
@@ -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
diff --git a/generate/generate.go b/generate/generate.go
index 8e823bc..bf2ffa1 100644
--- a/generate/generate.go
+++ b/generate/generate.go
@@ -1725,6 +1725,7 @@ func (s *service) generateNewAPICallFunc(a *API) {
"CreateSecurityGroup",
"CreateServiceOffering",
"CreateUser",
+ "CreateZone",
"DedicateGuestVlanRange",
"EnableUser",
"GetVirtualMachineUserData",