Skip to content
Permalink
Browse files
Merge pull request #48 from svanharmelen/dev
Add a special use case for CreateServiceOffering
  • Loading branch information
Sander van Harmelen committed Jan 29, 2016
2 parents fa516de + fe4476b commit 9181d8f93ee9a61fad2c891952023ae34aad1763
Showing 4 changed files with 13 additions and 1 deletion.
@@ -349,6 +349,10 @@ func (s *ServiceOfferingService) CreateServiceOffering(p *CreateServiceOfferingP
return nil, err
}

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

var r CreateServiceOfferingResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
@@ -301,6 +301,10 @@ func (s *ServiceOfferingService) CreateServiceOffering(p *CreateServiceOfferingP
return nil, err
}

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

var r CreateServiceOfferingResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
@@ -349,6 +349,10 @@ func (s *ServiceOfferingService) CreateServiceOffering(p *CreateServiceOfferingP
return nil, err
}

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

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

0 comments on commit 9181d8f

Please sign in to comment.