From 888250bbc5ad2e4c3b87d0664a01bfb39125ff69 Mon Sep 17 00:00:00 2001 From: Oliver Gupte Date: Wed, 14 Jun 2023 00:08:07 -0400 Subject: [PATCH] Adds onboarding id as query param to download elastic agent config on host --- .../public/assets/standalone_agent_setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/observability_onboarding/public/assets/standalone_agent_setup.sh b/x-pack/plugins/observability_onboarding/public/assets/standalone_agent_setup.sh index dc415ec2fe40..bf21b594f94d 100644 --- a/x-pack/plugins/observability_onboarding/public/assets/standalone_agent_setup.sh +++ b/x-pack/plugins/observability_onboarding/public/assets/standalone_agent_setup.sh @@ -94,7 +94,7 @@ downloadElasticAgentConfig() { echo "Downloading elastic-agent.yml" updateStepProgress "ea-config" "loading" curl --request GET \ - --url "${API_ENDPOINT}/elastic_agent/config" \ + --url "${API_ENDPOINT}/elastic_agent/config?id=${ONBOARDING_ID}" \ --header "Authorization: ApiKey ${API_KEY_ENCODED}" \ --header "Content-Type: application/json" \ --header "kbn-xsrf: true" \