Browse code

Merge "XenAPI: Fix new useage of trueorfalse"

Jenkins authored on 2014/02/12 02:12:49
Showing 3 changed files
... ...
@@ -21,9 +21,19 @@ set -o xtrace
21 21
 # This directory
22 22
 TOP_DIR=$(cd $(dirname "$0") && pwd)
23 23
 
24
+# Source lower level functions
25
+. $TOP_DIR/../../functions
26
+
24 27
 # Include onexit commands
25 28
 . $TOP_DIR/scripts/on_exit.sh
26 29
 
30
+# xapi functions
31
+. $TOP_DIR/functions
32
+
33
+# Determine what system we are running on.
34
+# Might not be XenServer if we're using xenserver-core
35
+GetDistro
36
+
27 37
 # Source params - override xenrc params in your localrc to suite your taste
28 38
 source xenrc
29 39
 
... ...
@@ -22,9 +22,19 @@ set -o xtrace
22 22
 # This directory
23 23
 TOP_DIR=$(cd $(dirname "$0") && pwd)
24 24
 
25
+# Source lower level functions
26
+. $TOP_DIR/../../functions
27
+
25 28
 # Include onexit commands
26 29
 . $TOP_DIR/scripts/on_exit.sh
27 30
 
31
+# xapi functions
32
+. $TOP_DIR/functions
33
+
34
+# Determine what system we are running on.
35
+# Might not be XenServer if we're using xenserver-core
36
+GetDistro
37
+
28 38
 # Source params - override xenrc params in your localrc to suite your taste
29 39
 source xenrc
30 40
 
... ...
@@ -91,4 +91,7 @@ UBUNTU_INST_GATEWAY=""
91 91
 # Set the size to 0 to avoid creation of additional disk.
92 92
 XEN_XVDB_SIZE_GB=0
93 93
 
94
+restore_nounset=`set +o | grep nounset`
95
+set +u
94 96
 source ../../stackrc
97
+$restore_nounset