mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix bug with API stdin
This commit is contained in:
parent
8cada1c450
commit
046943c250
@ -26,7 +26,7 @@ class ApiServersServerStdinHandler(BaseApiHandler):
|
|||||||
# if the user doesn't have Commands permission, return an error
|
# if the user doesn't have Commands permission, return an error
|
||||||
return self.finish_json(400, {"status": "error", "error": "NOT_AUTHORIZED"})
|
return self.finish_json(400, {"status": "error", "error": "NOT_AUTHORIZED"})
|
||||||
|
|
||||||
svr = self.controller.get_server_obj_optional(server_id)
|
svr = self.controller.servers.get_server_obj_optional(server_id)
|
||||||
if svr is None:
|
if svr is None:
|
||||||
# It's in auth_data[0] but not as a Server object
|
# It's in auth_data[0] but not as a Server object
|
||||||
logger.critical(
|
logger.critical(
|
||||||
|
Loading…
Reference in New Issue
Block a user