Use ID instead of name

This commit is contained in:
weslambert
2024-10-08 10:55:16 -04:00
committed by GitHub
parent 69857b6b5c
commit c58ed45cf0

View File

@@ -13,7 +13,7 @@ if [ $? -ne 0 ]; then
fi fi
IFS=$'\n' IFS=$'\n'
agent_policies=$(elastic_fleet_agent_policy_names) agent_policies=$(elastic_fleet_agent_policy_ids)
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Error: Failed to retrieve agent policies." echo "Error: Failed to retrieve agent policies."
exit 1 exit 1