Skip to content

Commit

Permalink
Fix policy load
Browse files Browse the repository at this point in the history
  • Loading branch information
defensivedepth committed Aug 26, 2024
1 parent 1cac2ff commit b952728
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ for POLICYNAME in $POLICY; do
printf "\nUpdating Policy: $POLICYNAME\n"

# First get the Integration ID
elastic_fleet_integration_check "$POLICYNAME" "/opt/so/conf/elastic-fleet/integrations/fleet-server/fleet-server.json"
INTEGRATION_ID=$(/usr/sbin/so-elastic-fleet-agent-policy-view "$POLICYNAME" | jq -r '.item.package_policies[] | select(.package.name == "fleet_server") | .id')

# Modify the default integration policy to update the policy_id and an with the correct naming
UPDATED_INTEGRATION_POLICY=$(jq --arg policy_id "$POLICYNAME" --arg name "fleet_server-$POLICYNAME" '
Expand Down

0 comments on commit b952728

Please sign in to comment.