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):
|
||||
|
|
Reference in a new issue