From abf5429c3bd408c60e4a72caa4a7df86ff037a79 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Thu, 17 Aug 2023 17:23:19 -0400 Subject: [PATCH] fix(striker-ui-api): don't check anvil name if doesn't exist when add host in run manifest --- .../src/lib/request_handlers/command/runManifest.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/striker-ui-api/src/lib/request_handlers/command/runManifest.ts b/striker-ui-api/src/lib/request_handlers/command/runManifest.ts index e6f52447..45628b52 100644 --- a/striker-ui-api/src/lib/request_handlers/command/runManifest.ts +++ b/striker-ui-api/src/lib/request_handlers/command/runManifest.ts @@ -124,10 +124,12 @@ export const runManifest: RequestHandler< const hostName = mapToHostNameData[hostUuid]; const { anvil_name: anName } = hostUuidMapToData[hostUuid]; - assert( - anName && anName !== manifestName, - `Host ${hostName} cannot be used for ${manifestName} because it belongs to ${anName}`, - ); + if (anName) { + assert( + anName !== manifestName, + `Host [${hostName}] cannot be used for [${manifestName}] because it belongs to [${anName}]`, + ); + } joinAnJobs.push({ debug,