Skip to content
Permalink
Browse files
Merge pull request #50 from Carles-Figuerola/f-createnetworkoffering
Add a special use case for CreateNetworkOffering
  • Loading branch information
Sander van Harmelen committed Jan 29, 2016
2 parents c56741a + ec1674c commit 252eb1b665d77aa31dedd435fab0a7da57b2d8c1
Show file tree
Hide file tree
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 252eb1b

Please sign in to comment.