Use ID instead of name

This commit is contained in:
weslambert authored and GitHub committed 2024-10-08 10:55:16 -04:00
1 parent 69857b6b5c
commit c58ed45cf0
1 file changed
+1 -1
@@ -13,7 +13,7 @@ if [ $? -ne 0 ]; then
fi
IFS=$'\n'
agent_policies=$(elastic_fleet_agent_policy_names)
agent_policies=$(elastic_fleet_agent_policy_ids)
if [ $? -ne 0 ]; then
echo "Error: Failed to retrieve agent policies."
exit 1