fix(striker-ui-api): don't check anvil name if doesn't exist when add host in run manifest

main
Tsu-ba-me 1 year ago
parent 3d857d7700
commit abf5429c3b
  1. 6
      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];
if (anName) {
assert(
anName && anName !== manifestName,
`Host ${hostName} cannot be used for ${manifestName} because it belongs to ${anName}`,
anName !== manifestName,
`Host [${hostName}] cannot be used for [${manifestName}] because it belongs to [${anName}]`,
);
}
joinAnJobs.push({
debug,

Loading…
Cancel
Save