Permalink
Browse files

Really fix control_lib.sh. :/

  • Loading branch information...
1 parent 8f8b785 commit e0773acf25529fc565da8a9f7dde306ce39f73b5 @VictorLowther VictorLowther committed Mar 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 updates/control_lib.sh
View
@@ -20,7 +20,7 @@ try_to() {
}
__post_state() {
- local curlargs=(--connect-timeout 60 -s -L -X PUT -d "state=$1" \
+ local curlargs=(--connect-timeout 60 -s -L -X PUT -d "{ \"state\": \"$1\" }" \
-H "Accept: application/json" -H "Content-Type: application/json")
[[ $CROWBAR_KEY ]] && curlargs+=(-u "$CROWBAR_KEY" --digest --anyauth)
(unset http_proxy; curl "${curlargs[@]}" \

0 comments on commit e0773ac

Please sign in to comment.