]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: run-backend-api-request insecure HTTPS 21882/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Tue, 8 May 2018 12:34:31 +0000 (14:34 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 8 May 2018 12:34:31 +0000 (14:34 +0200)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/pybind/mgr/dashboard/run-backend-api-request.sh

index 2887674763879c455b6fedf931258b23d2012c05..d52bc174b3e1f87fc4e494afc2bd7c06f0e2de42 100755 (executable)
@@ -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
+