We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9878c59 commit 7872c89Copy full SHA for 7872c89
packer/linux/conf/bin/bk-install-elastic-stack.sh
@@ -11,6 +11,8 @@ on_error() {
11
local exitCode="$?"
12
local errorLine="$1"
13
14
+ # If the curl fails, we're already in the error trap...
15
+ # shellcheck disable=SC2155
16
local token=$(curl -X PUT -H "X-aws-ec2-metadata-token-ttl-seconds: 60" --fail --silent --show-error --location "http://169.254.169.254/latest/api/token")
17
18
if [[ $exitCode != 0 ]] ; then
0 commit comments