X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjob-cost.sh;h=5bd61bee5a2c9b9f82922f218334522c61a8643f;hb=a84f98eb5f612bff6f751e576dc34d41fed76609;hp=6493a6ef71266d8aa1ab29fd9e568ce68bbc5c81;hpb=d250534e8a1c1d05f4b7cfeb71e653b32a3e9a59;p=releng%2Fglobal-jjb.git diff --git a/shell/job-cost.sh b/shell/job-cost.sh index 6493a6ef..5bd61bee 100644 --- a/shell/job-cost.sh +++ b/shell/job-cost.sh @@ -47,10 +47,10 @@ instance_type=$(curl -s http://169.254.169.254/latest/meta-data/instance-type) echo "INFO: Retrieving Pricing Info for: $instance_type" url="https://pricing.vexxhost.net/v1/pricing/$instance_type/cost?seconds=$uptime" -jason_block=$(curl -s "$url") +json_block=$(curl -s "$url") -cost=$(jq .cost <<< "$jason_block") -resource=$(jq .resource <<< "$jason_block" | tr -d '"') +cost=$(jq .cost <<< "$json_block") +resource=$(jq .resource <<< "$json_block" | tr -d '"') # Archive the cost date mkdir -p "$WORKSPACE/archives/cost"