ceph-handler: allow 405 as a success restart for rgw

If rgw is configured to only operate admin api - this is the status code it will return for GET on no path.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
pull/7538/head
Seena Fallah 2024-03-29 19:57:36 +01:00 committed by Guillaume Abrioux
parent f5e7f47a2e
commit 9f9b32e9e6
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ check_rest() {
local succ=0
while [ $RETRIES -ne 0 ]; do
check_for_curl_or_wget ${i}
if [ $rgw_test_result -eq 200 ] || [ $rgw_test_result -eq 404 ]; then
if [ $rgw_test_result -eq 200 ] || [ $rgw_test_result -eq 404 ] || [ $rgw_test_result -eq 405 ]; then
succ=$((succ+1))
break
fi