From 336ca0dbbdccc6e7d17268047c78e97efe2512fb Mon Sep 17 00:00:00 2001 From: reyesj2 <94730068+reyesj2@users.noreply.github.com> Date: Thu, 18 Sep 2025 15:42:25 -0500 Subject: [PATCH] typos --- salt/elasticfleet/tools/sbin/so-elastic-fleet-common | 2 +- salt/elasticfleet/tools/sbin_jinja/so-elastic-fleet-setup | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/elasticfleet/tools/sbin/so-elastic-fleet-common b/salt/elasticfleet/tools/sbin/so-elastic-fleet-common index 5d8781ba8..4ca5030aa 100644 --- a/salt/elasticfleet/tools/sbin/so-elastic-fleet-common +++ b/salt/elasticfleet/tools/sbin/so-elastic-fleet-common @@ -142,7 +142,7 @@ elastic_fleet_installed_packages() { } elastic_fleet_agent_policy_ids() { - if output=$(fleet_api "agent_policies"); + if output=$(fleet_api "agent_policies"); then echo "$output" | jq -r .items[].id else echo "Error: Failed to retrieve agent policies." diff --git a/salt/elasticfleet/tools/sbin_jinja/so-elastic-fleet-setup b/salt/elasticfleet/tools/sbin_jinja/so-elastic-fleet-setup index 066edd2da..9033d7a0c 100755 --- a/salt/elasticfleet/tools/sbin_jinja/so-elastic-fleet-setup +++ b/salt/elasticfleet/tools/sbin_jinja/so-elastic-fleet-setup @@ -50,7 +50,7 @@ if [[ "$RETURN_CODE" != "0" ]]; then fi printf "\n### Create ES Token ###\n" -if ESTOKEN_RAW=$(fleet_api "service_tokens" -XPOST-H 'kbn-xsrf: true' -H 'Content-Type: application/json'); then +if ESTOKEN_RAW=$(fleet_api "service_tokens" -XPOST -H 'kbn-xsrf: true' -H 'Content-Type: application/json'); then ESTOKEN=$(echo "$ESTOKEN_RAW" | jq -r .value) else echo -e "\nFailed to create ES token..."