Skip to content

Commit

Permalink
Use curl instead of httpie
Browse files Browse the repository at this point in the history
* fix authentication problem
* get rid of additionally installed httpie package

[noissue]
  • Loading branch information
dosas committed Jan 10, 2024
1 parent 281997a commit ef2f2d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ else
COMPONENT_NAME=${1#"pulp_"}
fi

VERSION=$(http ${PULP_URL}status/ | jq --arg plugin $COMPONENT_NAME -r '.versions[] | select(.component == $plugin) | .version')
curl --fail-with-body -k -o status.json ${PULP_URL}status/
VERSION=$(jq --arg plugin $COMPONENT_NAME -r '.versions[] | select(.component == $plugin) | .version' < status.json)
export VERSION
rm status.json
fi

# Mount volumes from parent container with `--volumes-from` option if the
Expand Down

0 comments on commit ef2f2d2

Please sign in to comment.