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 @@ -442,7 +442,7 @@ actions:
442442 for i in {1..10}; do
443443 sleep 10
444444 echo "Attempt ${i} of Grafana dashboard parameters setting"
445- curl -X POST -f -d "user= admin& password= ${grafana_secret}" -c grafana/grafana-jar.txt "http://${env.domain}/grafana/login" || continue
445+ 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
446446 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}')
447447 [ "${dash_id}" = "" ] && continue
448448 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