Skip to content
Permalink
Browse files
Fixed responses for create user and register user keys (#81)
  • Loading branch information
pdube authored and Sander van Harmelen committed Oct 2, 2017
1 parent bc58c87 commit 2d98634ca22449e3c0d729f4e62c67c535f8e8a4
Showing 2 changed files with 9 additions and 1 deletion.
@@ -156,6 +156,10 @@ func (s *UserService) CreateUser(p *CreateUserParams) (*CreateUserResponse, erro
return nil, err
}

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

var r CreateUserResponse
if err := json.Unmarshal(resp, &r); err != nil {
return nil, err
@@ -990,6 +994,10 @@ func (s *UserService) RegisterUserKeys(p *RegisterUserKeysParams) (*RegisterUser
return nil, err
}

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

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

0 comments on commit 2d98634

Please sign in to comment.