Fix some errors.
This commit is contained in:
parent
1ae04658ef
commit
5cc2bdbc71
2 changed files with 10 additions and 12 deletions
|
@ -35,10 +35,8 @@ class UserRobot(ApiResource):
|
|||
""" Create a new user robot with the specified name. """
|
||||
parent = get_authenticated_user()
|
||||
robot, password = model.create_robot(robot_shortname, parent)
|
||||
resp = robot_view(robot.username, password)
|
||||
log_action('create_robot', parent.username, {'robot': robot_shortname})
|
||||
resp.status_code = 201
|
||||
return resp
|
||||
return robot_view(robot.username, password), 201
|
||||
|
||||
@nickname('deleteUserRobot')
|
||||
def delete(self, robot_shortname):
|
||||
|
|
|
@ -226,22 +226,22 @@ class ConvertToOrganization(ApiResource):
|
|||
'type': 'object',
|
||||
'description': 'Information required to convert a user to an organization.',
|
||||
'required': [
|
||||
'username',
|
||||
'password',
|
||||
'email',
|
||||
'adminUser',
|
||||
'adminPassword',
|
||||
'plan',
|
||||
],
|
||||
'properties': {
|
||||
'username': {
|
||||
'adminUser': {
|
||||
'type': 'string',
|
||||
'description': 'The user\'s username',
|
||||
'description': 'The user who will become an org admin\'s username',
|
||||
},
|
||||
'password': {
|
||||
'adminPassword': {
|
||||
'type': 'string',
|
||||
'description': 'The user\'s password',
|
||||
'description': 'The user who will become an org admin\'s password',
|
||||
},
|
||||
'email': {
|
||||
'plan': {
|
||||
'type': 'string',
|
||||
'description': 'The user\'s email address',
|
||||
'description': 'The plan to which the organizatino should be subscribed',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Reference in a new issue