Handle trailing commas in source libs list

Some job defs (like ironics) have trailing commas in their
DEVSTACK_LIB_FROM_GIT list which was not parsed properly by the new
PROJECTS code. Chomp the trailing comma with sed so that we don't have
problems with it.

Change-Id: I70bd1737158efe351f85ae899e795b191029e090
This commit is contained in:
Clark Boylan 2017-03-17 08:39:26 -07:00
parent bd082d261a
commit 8813f21332
1 changed files with 2 additions and 1 deletions

View File

@ -145,7 +145,8 @@ fi
if [[ -n "$DEVSTACK_PROJECT_FROM_GIT" ]] ; then
# We populate the PROJECTS list with any libs that should be installed
# from source and not pypi assuming that live under openstack/
PROCESSED_FROM_GIT=$(echo "openstack/$DEVSTACK_PROJECT_FROM_GIT" | sed -e 's/,/ openstack\//g')
TRAILING_COMMA_REMOVED=$(echo "$DEVSTACK_PROJECT_FROM_GIT" | sed -e 's/,$//')
PROCESSED_FROM_GIT=$(echo "openstack/$TRAILING_COMMA_REMOVED" | sed -e 's/,/ openstack\//g')
PROJECTS="$PROCESSED_FROM_GIT $PROJECTS"
fi