ovhapilib bugfix: JSON datas must be set when PUT method is used

pull/17/head
Didier BONNEFOI 2018-09-25 17:54:10 +02:00
parent 8f94a4fa2c
commit d71e06fb95
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ OvhRequestApi()
cmd+=(--target "${OVHAPI_TARGET}") cmd+=(--target "${OVHAPI_TARGET}")
fi fi
if [ "${method}" == "POST" ]; then if [ "${method}" == "POST" ] || [ "${method}" == "PUT" ]; then
# double-quote data content for bash input # double-quote data content for bash input
data=$(printf "%q" "${data}") data=$(printf "%q" "${data}")
cmd+=(--data "${data}") cmd+=(--data "${data}")