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. 10
      striker-ui-api/src/lib/request_handlers/command/runManifest.ts

@ -124,10 +124,12 @@ export const runManifest: RequestHandler<
const hostName = mapToHostNameData[hostUuid]; const hostName = mapToHostNameData[hostUuid];
const { anvil_name: anName } = hostUuidMapToData[hostUuid]; const { anvil_name: anName } = hostUuidMapToData[hostUuid];
assert( if (anName) {
anName && anName !== manifestName, assert(
`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({ joinAnJobs.push({
debug, debug,

Loading…
Cancel
Save