Skip to content

Commit

Permalink
src/lib/teuthologyAPI.ts: add trailing slash to run-kill req
Browse files Browse the repository at this point in the history
Request get redirected to /kill/?logs=true if trailing
slash is missing.

Signed-off-by: Vallari Agrawal <[email protected]>
  • Loading branch information
VallariAg committed Sep 10, 2024
1 parent 0e712f0 commit ebaaebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/teuthologyAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function useUserData(): Map<string, string> {
}

function useRunKill(): UseMutationResult {
const url = getURL("/kill?logs=true");
const url = getURL("/kill/?logs=true");
const mutation: UseMutationResult = useMutation({
mutationKey: ['run-kill', { url }],
mutationFn: (payload) => (
Expand Down

0 comments on commit ebaaebe

Please sign in to comment.