From 2ca1277b3f628f597839441e96c4bcdad7c2e865 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Mon, 27 Mar 2023 23:15:56 -0400 Subject: [PATCH] fix(striker-ui-api): only include node(s) in manifest detail --- .../src/lib/request_handlers/manifest/getManifestDetail.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/striker-ui-api/src/lib/request_handlers/manifest/getManifestDetail.ts b/striker-ui-api/src/lib/request_handlers/manifest/getManifestDetail.ts index fb858e2e..0da929a9 100644 --- a/striker-ui-api/src/lib/request_handlers/manifest/getManifestDetail.ts +++ b/striker-ui-api/src/lib/request_handlers/manifest/getManifestDetail.ts @@ -148,6 +148,11 @@ export const getManifestDetail: RequestHandler = (request, response) => { stdout(`host=${hostType},n=${hostNumber}`); + // Only include node-type host(s). + if (hostType !== 'node') { + return previous; + } + previous[hostId] = { fences: Object.entries(fence) .sort(handleSortEntries)