Do not install tempest plugin in train environments

Since train is a python2 env, expand the check in the
devstack plugin to not install the tempest plugin since
it is python3-only.

Change-Id: I67027090a8cc340b85fb1119f0e52bc1f2ffc66d
This commit is contained in:
Brian Haley 2020-11-18 12:17:30 -05:00
parent a5b6008537
commit 08182055bc
1 changed files with 4 additions and 4 deletions

View File

@ -28,11 +28,11 @@ if [[ "$1" == "stack" ]]; then
case "$2" in case "$2" in
install) install)
# Install dev library if # Install dev library if
# - the release is more recent than stein (devstack in stein would # - the release is more recent than train (devstack in train would
# try to install it in a python2 env, but octavia-tempest-plugin is # try to install it in a python2 env, but octavia-tempest-plugin
# now a python3-only project) # is now a python3-only project)
# - or the user explicitly requests it (INSTALL_TEMPEST=True) # - or the user explicitly requests it (INSTALL_TEMPEST=True)
if [[ "$DEVSTACK_SERIES" != "stein" ]] || [[ "$(trueorfalse False INSTALL_TEMPEST)" == "True" ]]; then if [[ ! "$DEVSTACK_SERIES" =~ (stein|train) ]] || [[ "$(trueorfalse False INSTALL_TEMPEST)" == "True" ]]; then
echo_summary "Installing octavia-tempest-plugin" echo_summary "Installing octavia-tempest-plugin"
install_octavia_tempest_plugin install_octavia_tempest_plugin
fi fi