Skip to content
Permalink
Browse files
Fix a bug in the createSecurityGroup call (#62) (#63)
  • Loading branch information
Sander van Harmelen committed Sep 28, 2016
1 parent b33e884 commit 7d6a4449b586546246087e96e5c97dbc450f4917
Showing 2 changed files with 5 additions and 1 deletion.
@@ -107,6 +107,10 @@ func (s *SecurityGroupService) CreateSecurityGroup(p *CreateSecurityGroupParams)
return nil, err
}

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

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

0 comments on commit 7d6a444

Please sign in to comment.