Include openstack/placement in PROJECTS starting in Stein

The openstack/placement repo is required for devstack/grenade
runs starting in Stein so this adds a conditional based on the
branch to include the openstack/placement repo in the default
PROJECTS list.

Needed by https://review.openstack.org/604454/

Depends-On: https://review.openstack.org/608266/

Change-Id: I71cffffc88c329052c4067d6a9406f42856c69c6
This commit is contained in:
Matt Riedemann 2018-09-30 12:10:02 -04:00
parent 95fa434310
commit 81ed118c2a
1 changed files with 6 additions and 0 deletions

View File

@ -133,6 +133,12 @@ if [[ -n "$DEVSTACK_PROJECT_FROM_GIT" ]] ; then
PROJECTS=$(echo $PROJECTS | sed -e 's|openstack/glean|openstack-infra/glean|g')
fi
# Include openstack/placement starting in Stein.
stable_compare="stable/[a-r]"
if [[ ! "$OVERRIDE_ZUUL_BRANCH" =~ $stable_compare ]] ; then
PROJECTS="openstack/placement $PROJECTS"
fi
# Remove duplicates as they result in errors when managing
# git state.
PROJECTS=$(echo $PROJECTS | tr '[:space:]' '\n' | sort -u)