From a55d9620e9d422dce1d2d9638ea0875bb58c7bf2 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 16 Aug 2023 18:41:14 +0900 Subject: [PATCH] Use devstack helper for installation ... to make sure the destination is selected according to some environment variables in devstack. Change-Id: I1de8dbf693a7109b4fcceea98eab9f0782f7bd4a --- devstack/plugin.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 20d326dee..142e9b017 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -239,13 +239,7 @@ function init_aodh { function install_aodh { _aodh_prepare_coordination install_aodhclient - if python3_enabled; then - PY_VERS=${PYTHON3_VERSION} - else - PY_VERS=${PYTHON2_VERSION} - fi - sudo -H SETUPTOOLS_USE_DISTUTILS=stdlib python${PY_VERS} -m pip \ - install -e "$AODH_DIR"[test,$AODH_BACKEND] + pip_install -e "$AODH_DIR"[test,$AODH_BACKEND] sudo install -d -o $STACK_USER -m 755 $AODH_CONF_DIR if [ "$AODH_DEPLOY" == "mod_wsgi" ]; then