Skip to content

Commit

Permalink
fixup enable curl
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-Afro committed Dec 27, 2024
1 parent ffa4b27 commit 77033d5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ data:
enable_feature_flag() {
local flag_name=$1
local node=$2
curl -sf -u "$RABBITMQ_MGMT_USERNAME:$RABBITMQ_MGMT_PASSWORD" -X PUT "http://$node:$RABBITMQ_PORT/api/feature-flags/$flag_name" | jq . || {
curl -sf -u "$RABBITMQ_MGMT_USERNAME:$RABBITMQ_MGMT_PASSWORD" -X PUT \
-H "Content-Type: application/json" \
"http://$node:$RABBITMQ_PORT/api/feature-flags/$flag_name/enable" || {
echo "ERROR: Failed to enable feature flag $flag_name on node $node." >&2
exit 1
}
Expand Down

0 comments on commit 77033d5

Please sign in to comment.