Skip to content

Commit

Permalink
Fix node type of host on start scan
Browse files Browse the repository at this point in the history
  • Loading branch information
milan-deepfence committed Jun 26, 2024
1 parent faffbde commit fc79aba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const scanPostureApiAction = async ({
let nodeType = body._nodeType.toString();
const checkTypes = body._checkTypes.toString()?.split(',') as Array<ModelBenchmarkType>;

const isCloudScan = !isNonCloudNode(nodeType);
const isCloudScan = isCloudOrgNode(nodeType) || isCloudNonOrgNode(nodeType);

if (isKubernetesNode(nodeType as ComplianceScanNodeTypeEnum)) {
nodeType = 'cluster';
Expand Down

0 comments on commit fc79aba

Please sign in to comment.