Replace deprecated configure_auth_token_middleware

It was deprecated some years ago by [1].

[1] 8ab64b3236c93c8449edf80165017898b83f1269

Change-Id: I7a1dcb82c2f3ef848f69af6631846c617441458c
This commit is contained in:
Takashi Kajinami 2024-11-15 10:59:06 +09:00
parent 1980cc84d2
commit eaf0a39bea

View File

@ -178,7 +178,7 @@ function configure_aodh {
iniset $AODH_CONF service_credentials region_name $REGION_NAME
iniset $AODH_CONF service_credentials auth_url $KEYSTONE_SERVICE_URI
configure_auth_token_middleware $AODH_CONF aodh $AODH_AUTH_CACHE_DIR
configure_keystone_authtoken_middleware $AODH_CONF aodh
# Configured storage
_aodh_configure_storage_backend
@ -219,9 +219,6 @@ function configure_aodh {
function init_aodh {
# Get aodh keystone settings in place
_aodh_create_accounts
# Create cache dir
sudo install -d -o $STACK_USER $AODH_AUTH_CACHE_DIR
rm -f $AODH_AUTH_CACHE_DIR/*
if is_service_enabled mysql postgresql; then
if [ "$AODH_BACKEND" = 'mysql' ] || [ "$AODH_BACKEND" = 'postgresql' ] ; then