Skip to content

Commit

Permalink
runs OK on the runner.. odd
Browse files Browse the repository at this point in the history
  • Loading branch information
james-jdgtl committed Jul 24, 2024
1 parent 3ff1cd4 commit 23d9fcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/get-sc-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set -e
# Setup SC session
SC_API_ENDPOINT="https://service-catalogue.hmpps.service.justice.gov.uk/v1"

SC_HTTPIE_SESSION="./.httpie_session_sc.json"
SC_HTTPIE_SESSION="/tmp/.httpie_session_sc.json"
SC_HTTPIE_OPTS=("--check-status" "--timeout=4.5" "--session-read-only=${SC_HTTPIE_SESSION}")

echo "Service catalogue API_KEY is ${SERVICE_CATALOGUE_API_KEY:0:5}..${SERVICE_CATALOGUE_API_KEY:250:255}" >&2
Expand All @@ -42,7 +42,7 @@ http_sc() {
echo "COMPONENT_NAME is ${COMPONENT_NAME}" >&2

#COMPONENT_SETTINGS=$(http_sc "components?filters[name][\$eq]=${COMPONENT_NAME}&populate=*")
COMPONENT_SETTINGS=$(http_sc GET "components?filters[name][\$eq]=${COMPONENT_NAME}&populate[0]=product&populate[1]=environments")
COMPONENT_SETTINGS=$(http_sc "components?filters[name][\$eq]=${COMPONENT_NAME}&populate[0]=product&populate[1]=environments")

if [ $(echo $COMPONENT_SETTINGS | jq ".meta.pagination.total") -eq 0 ]
then
Expand Down

0 comments on commit 23d9fcb

Please sign in to comment.