Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Deployment and Operations
infra-azure-provisioning
Commits
d23485d4
Commit
d23485d4
authored
Sep 01, 2021
by
Aryaan Singh
Browse files
Fix exit condition in case of token fetch failure
parent
ea2cfa06
Pipeline
#62185
passed with stages
in 2 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tools/data_initialization_agent/entitlements_init/data_init.sh
View file @
d23485d4
...
...
@@ -17,8 +17,8 @@ fi
echo
"Trying to Fetch Access Token"
ACCESS_TOKEN
=
$(
sh ./get_access_token.sh
)
if
[[
"
$ACCESS_TOKEN
"
==
"TOKEN_FETCH_FAILURE"
]]
;
then
echo
"Failure fetching Access Token
"
exit
1
currentStatus
=
"failure
"
currentMessage
=
"
${
currentMessage
}
. Failure fetching Access Token. "
else
echo
"Access Token fetched successfully."
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment