From: Sebastian Wagner Date: Tue, 8 May 2018 12:34:31 +0000 (+0200) Subject: mgr/dashboard: run-backend-api-request insecure HTTPS X-Git-Tag: v14.0.0~180^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=79d5339cc88a44efd4f9375b1893ca990656f44f;p=ceph.git mgr/dashboard: run-backend-api-request insecure HTTPS Signed-off-by: Sebastian Wagner --- diff --git a/src/pybind/mgr/dashboard/run-backend-api-request.sh b/src/pybind/mgr/dashboard/run-backend-api-request.sh index 2887674763879..d52bc174b3e1f 100755 --- a/src/pybind/mgr/dashboard/run-backend-api-request.sh +++ b/src/pybind/mgr/dashboard/run-backend-api-request.sh @@ -5,7 +5,7 @@ cd ../../../../build API_URL=`./bin/ceph mgr services 2>/dev/null | jq .dashboard | sed -e 's/"//g' -e 's!/$!!g'` cd $CURR_DIR -curl -s -c /tmp/cd-cookie.txt -H "Content-Type: application/json" -X POST -d '{"username":"admin","password":"admin"}' $API_URL/api/auth > /dev/null +curl --insecure -s -c /tmp/cd-cookie.txt -H "Content-Type: application/json" -X POST -d '{"username":"admin","password":"admin"}' $API_URL/api/auth > /dev/null echo "API_ENDPOINT: $API_URL" echo "METHOD: $1" @@ -13,4 +13,5 @@ echo "PATH: $2" echo "DATA: $3" echo "" -curl -s -b /tmp/cd-cookie.txt -H "Content-Type: application/json" -X $1 -d "$3" ${API_URL}$2 | jq +curl --insecure -s -b /tmp/cd-cookie.txt -H "Content-Type: application/json" -X $1 -d "$3" ${API_URL}$2 | jq +