From 79d5339cc88a44efd4f9375b1893ca990656f44f Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Tue, 8 May 2018 14:34:31 +0200 Subject: [PATCH] mgr/dashboard: run-backend-api-request insecure HTTPS Signed-off-by: Sebastian Wagner --- src/pybind/mgr/dashboard/run-backend-api-request.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 + -- 2.39.5