Skip to content

Commit

Permalink
fix: Elastic Agent enroll command
Browse files Browse the repository at this point in the history
Remove additional '$' from ${$apiKeyId}

fxies #24033
  • Loading branch information
simitt committed Feb 15, 2021
1 parent 183fae5 commit 706dde2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function enroll(){
local apikeyId=$(echo $enrollResp | jq -r '.list[] | select((.name | startswith("Default ")) and (.active == true)) | .id')
echo $apikeyId

if [[ -z "${$apikeyId}" ]]; then
if [[ -z "${apikeyId}" ]]; then
echo "Default agent policy was not found. Please consider using own enrollment token (FLEET_ENROLLMENT_TOKEN)."
exit 1
fi
Expand Down

0 comments on commit 706dde2

Please sign in to comment.