From 05530caf2cc12716f6b22c103212ba3ea7fe7910 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Fri, 6 Jul 2012 15:09:10 -0500 Subject: [PATCH] Source functions before stackrc The enable_service() and disable_service() functions in https://review.openstack.org/9407 require the functions file be sourced before stackrc. * exercise.sh * samples/local.sh (this will require manual addition to the user's local.sh if they based it on the sample) * tools/build_bm.sh Change-Id: I1bed687867e870bef5748289d712376435a776af --- exercise.sh | 3 +++ samples/local.sh | 3 +++ tools/build_bm.sh | 7 +++++++ 3 files changed, 13 insertions(+) diff --git a/exercise.sh b/exercise.sh index 15f264f4f8..a0349ce469 100755 --- a/exercise.sh +++ b/exercise.sh @@ -5,6 +5,9 @@ # Keep track of the current devstack directory. TOP_DIR=$(cd $(dirname "$0") && pwd) +# Import common functions +source $TOP_DIR/functions + # Load local configuration source $TOP_DIR/stackrc diff --git a/samples/local.sh b/samples/local.sh index 83637f983b..2c54b10f16 100755 --- a/samples/local.sh +++ b/samples/local.sh @@ -13,6 +13,9 @@ # Keep track of the devstack directory TOP_DIR=$(cd $(dirname "$0") && pwd) +# Import common functions +source $TOP_DIR/functions + # Use openrc + stackrc + localrc for settings source $TOP_DIR/stackrc diff --git a/tools/build_bm.sh b/tools/build_bm.sh index b2d4c36668..ab0ba0ef8a 100755 --- a/tools/build_bm.sh +++ b/tools/build_bm.sh @@ -5,6 +5,13 @@ # Build an OpenStack install on a bare metal machine. set +x +# Keep track of the current directory +TOOLS_DIR=$(cd $(dirname "$0") && pwd) +TOP_DIR=$(cd $TOOLS_DIR/..; pwd) + +# Import common functions +source $TOP_DIR/functions + # Source params source ./stackrc