From f4758c91736b367e4588965f70df8ff067662195 Mon Sep 17 00:00:00 2001 From: Yumeng Bao Date: Fri, 5 Jul 2019 02:01:40 -0700 Subject: [PATCH] enable branch selection in devstack installation With this patch, user can specify the installation version.. Change-Id: Icde4143d84f50b5b4199403070bf5dab12751682 --- devstack/lib/cyborg | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/devstack/lib/cyborg b/devstack/lib/cyborg index 0681eeda..fc599592 100644 --- a/devstack/lib/cyborg +++ b/devstack/lib/cyborg @@ -27,8 +27,11 @@ declare -r -g _CYBORG_DEVSTACK_LIB=1 # Defaults # -------- -# Set up default directories +# Set up default repos +CYBORG_REPO=${CYBORG_REPO:-${GIT_BASE}/openstack/cyborg.git} +CYBORG_BRANCH=${CYBORG_BRANCH:-master} +# Set up default directories CYBORG_DIR=$DEST/cyborg CYBORG_DEVSTACK_DIR=$CYBORG_DIR/devstack CYBORG_DEVSTACK_FILES_DIR=$CYBORG_DEVSTACK_DIR/files @@ -78,6 +81,9 @@ function install_cyborg_in_controller { function install_cyborg { # make sure all needed services are enabled install_cyborg_in_controller + + git_clone $CYBORG_REPO $CYBORG_DIR $CYBORG_BRANCH + setup_develop $CYBORG_DIR }