File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -450,7 +450,7 @@ actions:
450450 for i in {1..10}; do
451451 sleep 10
452452 echo "Attempt ${i} of Grafana dashboard parameters setting"
453- curl -X POST -f -d "user= admin& password= ${grafana_secret}" -c grafana/grafana-jar.txt "http://${env.domain}/grafana/login" || continue
453+ curl -X POST -f -H 'Content-Type: application/json' - d "{\" user\":\" admin\",\" password\":\" ${grafana_secret}\" }" -c grafana/grafana-jar.txt "http://${env.domain}/grafana/login" || continue
454454 dash_id=$(curl -sb grafana/grafana-jar.txt 'http://${env.domain}/grafana/api/search?mode=tree&query=Jelastic' | grep -Po '"id":(\d+)' | awk -F ':' '{print $2}')
455455 [ "${dash_id}" = "" ] && continue
456456 curl -X POST -f -b grafana/grafana-jar.txt "http://${env.domain}/grafana/api/user/stars/dashboard/${dash_id}" || continue
You can’t perform that action at this time.
0 commit comments