Skip to content

Commit 0049c0c

Browse files
author
Brant Knudson
committed
Make unstack.sh more like stack.sh
unstack.sh and stack.sh both have to "configure projects", but the code was different. This change makes it so the 2 sections of the files are the same. Change-Id: Ia06f8bbfbe2a6e87fb406e34e13a39bd7fa9e5af
1 parent 5eec5b6 commit 0049c0c

3 files changed

Lines changed: 22 additions & 9 deletions

File tree

lib/keystone

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
XTRACE=$(set +o | grep xtrace)
2929
set +o xtrace
3030

31-
source $TOP_DIR/lib/tls
32-
3331
# Defaults
3432
# --------
3533

stack.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,13 @@ rm -f $SSL_BUNDLE_FILE
305305
# Configure Projects
306306
# ==================
307307

308-
# Source project function libraries
308+
# Import apache functions
309309
source $TOP_DIR/lib/apache
310+
311+
# Import TLS functions
310312
source $TOP_DIR/lib/tls
313+
314+
# Source project function libraries
311315
source $TOP_DIR/lib/infra
312316
source $TOP_DIR/lib/oslo
313317
source $TOP_DIR/lib/stackforge

unstack.sh

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,31 @@ if [[ $EUID -eq 0 ]]; then
3030
exit 1
3131
fi
3232

33+
34+
# Configure Projects
35+
# ==================
36+
3337
# Import apache functions
3438
source $TOP_DIR/lib/apache
3539

36-
# Get project function libraries
37-
source $TOP_DIR/lib/baremetal
38-
source $TOP_DIR/lib/ceilometer
39-
source $TOP_DIR/lib/cinder
40+
# Import TLS functions
41+
source $TOP_DIR/lib/tls
42+
43+
# Source project function libraries
44+
source $TOP_DIR/lib/infra
45+
source $TOP_DIR/lib/oslo
46+
source $TOP_DIR/lib/stackforge
47+
source $TOP_DIR/lib/horizon
4048
source $TOP_DIR/lib/keystone
4149
source $TOP_DIR/lib/glance
4250
source $TOP_DIR/lib/nova
43-
source $TOP_DIR/lib/heat
44-
source $TOP_DIR/lib/horizon
51+
source $TOP_DIR/lib/cinder
4552
source $TOP_DIR/lib/swift
53+
source $TOP_DIR/lib/ceilometer
54+
source $TOP_DIR/lib/heat
4655
source $TOP_DIR/lib/neutron
56+
source $TOP_DIR/lib/baremetal
57+
source $TOP_DIR/lib/ldap
4758
source $TOP_DIR/lib/ironic
4859
source $TOP_DIR/lib/trove
4960

0 commit comments

Comments
 (0)