Browse code

Source functions from stackrc

stackrc now requires GITREPO, GITBRANCH, GITDIR and has been
dependent on functions for a while (is_package_installed). Ensure
we source the required functions file when stackrc is loaded. Avoids
unexpected issues in grenade where they may or may not have been loaded
depending on the configuration.

Closes-bug: #1377274

Change-Id: I5027cfad07af0de7ff39f424601d6f7ec5dcadae

Adam Gandelman authored on 2014/10/04 05:27:17
Showing 1 changed files
... ...
@@ -3,6 +3,9 @@
3 3
 # Find the other rc files
4 4
 RC_DIR=$(cd $(dirname "${BASH_SOURCE:-$0}") && pwd)
5 5
 
6
+# Source required devstack functions and globals
7
+source $RC_DIR/functions
8
+
6 9
 # Destination path for installation
7 10
 DEST=/opt/stack
8 11