Fix the org robot create response.
This commit is contained in:
parent
bb2767ff16
commit
4673f40dd2
1 changed files with 1 additions and 3 deletions
|
@ -75,10 +75,8 @@ class OrgRobot(ApiResource):
|
||||||
if permission.can():
|
if permission.can():
|
||||||
parent = model.get_organization(orgname)
|
parent = model.get_organization(orgname)
|
||||||
robot, password = model.create_robot(robot_shortname, parent)
|
robot, password = model.create_robot(robot_shortname, parent)
|
||||||
resp = robot_view(robot.username, password)
|
|
||||||
log_action('create_robot', orgname, {'robot': robot_shortname})
|
log_action('create_robot', orgname, {'robot': robot_shortname})
|
||||||
resp.status_code = 201
|
return robot_view(robot.username, password), 201
|
||||||
return resp
|
|
||||||
|
|
||||||
abort(403)
|
abort(403)
|
||||||
|
|
||||||
|
|
Reference in a new issue