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,