Skip to content

Commit

Permalink
Removed github auth requirements in development mode
Browse files Browse the repository at this point in the history
Signed-off-by: AyishikD <[email protected]>
  • Loading branch information
AyishikD committed Sep 10, 2024
1 parent 77059e6 commit 558bf92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/teuthology_api/services/kill.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand All @@ -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

0 comments on commit 558bf92

Please sign in to comment.