diff --git a/src/teuthology_api/services/kill.py b/src/teuthology_api/services/kill.py index f648990..1487e51 100644 --- a/src/teuthology_api/services/kill.py +++ b/src/teuthology_api/services/kill.py @@ -33,7 +33,7 @@ def run(args, send_logs: bool, access_token: str, request: Request): # TODO if user has admin privilege, then they can kill any run/job. if run_owner.lower() != username.lower(): log.error( - "%s doesn't have permission to kill a job scheduled by: %s", + "%s doesn't have permission to kill a job scheduled by: %s", username, run_owner, ) @@ -60,5 +60,4 @@ def run(args, send_logs: bool, access_token: str, request: Request): return {"kill": "success"} except Exception as exc: log.error("teuthology-kill command failed with the error: %s", repr(exc)) - raise HTTPException(status_code=500, detail=repr(exc)) from exc - + raise HTTPException(status_code=500, detail=repr(exc)) from exc \ No newline at end of file