Skip to content

Commit

Permalink
Change function name
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Dec 29, 2023
1 parent 71a4a3c commit 7a085bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pakman/bootstrap/templates/environment.eex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

function fetch_from_instellar() {
function fetch_from_instellar_or_fallback() {
endpoint="$(curl -s --unix-socket /dev/lxd/sock x/1.0/config/user.INSTELLAR_INSTALLATION_ENDPOINT)"
token="$(curl -s --unix-socket /dev/lxd/sock x/1.0/config/user.INSTELLAR_BOT_TOKEN)"
code="$(curl -s -o /dev/null -w "%{http_code}" "${endpoint}" -H "Authorization: Bearer ${token}" -H 'Content-Type: application/json; charset=utf-8')"
Expand All @@ -29,7 +29,7 @@ then

variables="$(curl -s "${endpoint}" -H 'Content-Type: application/json; charset=utf-8' | jq '.data.attributes.variables')"
else
fetch_from_instellar
fetch_from_instellar_or_fallback
fi

while read -rd $'' line
Expand Down

0 comments on commit 7a085bb

Please sign in to comment.