Merge "Reduce duplicate imports of functions & stackrc"

This commit is contained in:
Jenkins 2015-08-28 21:56:28 +00:00 committed by Gerrit Code Review
commit 64d8a7de9f
4 changed files with 2 additions and 7 deletions

View File

@ -29,7 +29,6 @@ set -o xtrace
if [[ -d $BASE_DEVSTACK_DIR ]]; then
bash -c "
cd $BASE_DEVSTACK_DIR; \
source functions; \
source stackrc; \
source lib/tls; \
source lib/cinder; \
@ -47,7 +46,6 @@ fi
if [[ -d $TARGET_DEVSTACK_DIR ]]; then
bash -x -c "
cd $TARGET_DEVSTACK_DIR; \
source functions; \
source stackrc; \
source lib/tls; \
source lib/cinder; \

View File

@ -53,7 +53,6 @@ function upgrade_service {
enabled="True"
else
enabled=$(
source $TARGET_DEVSTACK_DIR/functions;
source $TARGET_DEVSTACK_DIR/stackrc;
is_service_enabled $local_service || echo "False")
fi

View File

@ -29,8 +29,7 @@ if [[ -d $BASE_RELEASE_DIR/images ]]; then
rsync -a $BASE_RELEASE_DIR/images $TARGET_DEVSTACK_DIR/files
fi
# Get target config
source $TARGET_DEVSTACK_DIR/functions
# Get target config (stackrc grabs devstack "functions" too)
source $TARGET_DEVSTACK_DIR/stackrc
# Build a wheel cache

View File

@ -40,8 +40,7 @@ GetDistro
TOP_DIR=$TARGET_DEVSTACK_DIR
cd $TARGET_DEVSTACK_DIR
source $TARGET_DEVSTACK_DIR/functions
source $TARGET_DEVSTACK_DIR/stackrc
# note; openrc sources functions & stackrc
source $TARGET_DEVSTACK_DIR/openrc
FILES=$TARGET_DEVSTACK_DIR/files