Skip to content
Permalink
Browse files
Add a special use case for CreateNetworkOffering
  • Loading branch information
Carles Figuerola authored and Carles Figuerola committed Jan 29, 2016
1 parent c56741a commit ec1674c58bdd35f51e05138371c4b8db92d13a60
Showing 4 changed files with 13 additions and 1 deletion.
@@ -289,6 +289,10 @@ func (s *NetworkOfferingService) CreateNetworkOffering(p *CreateNetworkOfferingP
return nil, err
}

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

var r CreateNetworkOfferingResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
@@ -289,6 +289,10 @@ func (s *NetworkOfferingService) CreateNetworkOffering(p *CreateNetworkOfferingP
return nil, err
}

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

var r CreateNetworkOfferingResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
@@ -289,6 +289,10 @@ func (s *NetworkOfferingService) CreateNetworkOffering(p *CreateNetworkOfferingP
return nil, err
}

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

var r CreateNetworkOfferingResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
@@ -973,7 +973,7 @@ func (s *service) generateNewAPICallFunc(a *API) {
pn(" }")
pn("")
switch n {
case "CreateNetwork", "CreateServiceOffering", "CreateSSHKeyPair", "RegisterSSHKeyPair":
case "CreateNetwork", "CreateNetworkOffering", "CreateServiceOffering", "CreateSSHKeyPair", "RegisterSSHKeyPair":
pn(" if resp, err = getRawValue(resp); err != nil {")
pn(" return nil, err")
pn(" }")

0 comments on commit ec1674c

Please sign in to comment.