Skip to content

Commit

Permalink
[Security Solution] Fixes certain Related Integrations showing as `no…
Browse files Browse the repository at this point in the history
…t installed` even when they are (#149646)

## Summary

Resolves #149644 by adding a
fallback for package policies without a policy_template.

(cherry picked from commit ba5634e)
  • Loading branch information
spong committed Feb 17, 2023
1 parent 165b09e commit d04670d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const getIntegrationsInfoFromPolicy = (
packageInfo: InstalledPackageBasicInfo
): InstalledIntegrationBasicInfo[] => {
return policy.inputs.map((input) => {
const integrationName = normalizeString(input.policy_template); // e.g. 'cloudtrail'
const integrationName = normalizeString(input.policy_template ?? input.type); // e.g. 'cloudtrail'
const integrationTitle = `${packageInfo.package_title} ${capitalize(integrationName)}`; // e.g. 'AWS Cloudtrail'
return {
integration_name: integrationName,
Expand Down

0 comments on commit d04670d

Please sign in to comment.