Fix bug with API stdin

This commit is contained in:
Andrew 2022-09-25 12:14:01 -04:00
parent 8cada1c450
commit 046943c250

View File

@ -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(