From d959b763f089ed4c1087aa4aeb824a8ef6743111 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 12 Jul 2023 10:53:46 +0200 Subject: Avoid duplicate runner names --- shared/server-commands/runners/runners-command.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shared/server-commands') diff --git a/shared/server-commands/runners/runners-command.ts b/shared/server-commands/runners/runners-command.ts index ca9a1d7a3..b0083e841 100644 --- a/shared/server-commands/runners/runners-command.ts +++ b/shared/server-commands/runners/runners-command.ts @@ -1,4 +1,5 @@ import { pick } from '@shared/core-utils' +import { buildUUID } from '@shared/extra-utils' import { HttpStatusCode, RegisterRunnerBody, RegisterRunnerResult, ResultList, Runner, UnregisterRunnerBody } from '@shared/models' import { unwrapBody } from '../requests' import { AbstractCommand, OverrideCommandOptions } from '../shared' @@ -68,7 +69,7 @@ export class RunnersCommand extends AbstractCommand { const { data } = await this.server.runnerRegistrationTokens.list({ sort: 'createdAt' }) const { runnerToken } = await this.register({ - name: 'runner', + name: 'runner ' + buildUUID(), registrationToken: data[0].registrationToken }) -- cgit v1.2.3