Skip to content

Commit

Permalink
remove jq dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
benakansara committed Oct 30, 2024
1 parent c307935 commit 8a20734
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions scripts/rca-demo/create-release-annotation
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,4 @@ HEADERS=(

response=$(curl -s -X POST -u "$KIBANA_USER:$KIBANA_PASSWORD" "${HEADERS[@]}" -d "$REQUEST_BODY" "$ANNOTATION_API_ENDPOINT")

statusCode=$(echo "$response" | jq -r '.statusCode')
ok=$(echo "$response" | jq -r '.ok')

if [[ "$statusCode" != null && "$statusCode" != 200 ]]; then
die "Creating annotation failed: $response"
fi

if [[ "$ok" != null && "$ok" == false ]]; then
die "Creating annotation failed: $response"
fi

echo "$message for $service_name: $service_version"
echo "$response"

0 comments on commit 8a20734

Please sign in to comment.