website: include Forbidden in 403 test per 802c8a3ee9 (commitcomment-15776266).

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
Robin H. Johnson 2016-01-30 17:14:15 +00:00 committed by Robin H. Johnson
parent 6ce34d3c6a
commit f028e1e926

View file

@ -54,7 +54,7 @@ def check_can_test_website():
elif e.status == 405 and e.reason == 'Method Not Allowed' and e.error_code == 'MethodNotAllowed':
# rgw_enable_static_website is false
CAN_WEBSITE = False
elif e.status == 403 and e.reason == 'SignatureDoesNotMatch':
elif e.status == 403 and e.reason == 'SignatureDoesNotMatch' and e.error_code == 'Forbidden':
# This is older versions that do not support the website code
CAN_WEBSITE = False
else: