Browse code

Cleanup exercise scripts

* whitespace and comment cleanups only

Change-Id: Iab9c2d9a25c3473f14190d60f2f2cf5be0ed59dc

Dean Troyer authored on 2012/06/28 12:04:40
Showing 5 changed files
... ...
@@ -17,6 +17,7 @@ set -o errexit
17 17
 # an error.  It is also useful for following allowing as the install occurs.
18 18
 set -o xtrace
19 19
 
20
+
20 21
 # Settings
21 22
 # ========
22 23
 
... ...
@@ -1,11 +1,14 @@
1 1
 #!/usr/bin/env bash
2 2
 
3
+**client-args.sh**
4
+
3 5
 # Test OpenStack client authentication aguemnts handling
4 6
 
5 7
 echo "*********************************************************************"
6 8
 echo "Begin DevStack Exercise: $0"
7 9
 echo "*********************************************************************"
8 10
 
11
+
9 12
 # Settings
10 13
 # ========
11 14
 
... ...
@@ -38,7 +41,7 @@ export x_USERNAME=$OS_USERNAME
38 38
 export x_PASSWORD=$OS_PASSWORD
39 39
 export x_AUTH_URL=$OS_AUTH_URL
40 40
 
41
-#Unset the usual variables to force argument processing
41
+# Unset the usual variables to force argument processing
42 42
 unset OS_TENANT_NAME
43 43
 unset OS_USERNAME
44 44
 unset OS_PASSWORD
... ...
@@ -1,13 +1,13 @@
1 1
 #!/usr/bin/env bash
2 2
 
3
+**client-env.sh**
4
+
3 5
 # Test OpenStack client enviroment variable handling
4 6
 
5 7
 echo "*********************************************************************"
6 8
 echo "Begin DevStack Exercise: $0"
7 9
 echo "*********************************************************************"
8 10
 
9
-# Verify client workage
10
-VERIFY=${1:-""}
11 11
 
12 12
 # Settings
13 13
 # ========
... ...
@@ -83,7 +83,7 @@ if ! nova secgroup-list | grep -q $SECGROUP; then
83 83
     fi
84 84
 fi
85 85
 
86
-# determinine instance type
86
+# Determinine instance type
87 87
 # -------------------------
88 88
 
89 89
 # List of instance types:
... ...
@@ -100,6 +100,7 @@ NAME="ex-float"
100 100
 VM_UUID=`nova boot --flavor $INSTANCE_TYPE --image $IMAGE $NAME --security_groups=$SECGROUP | grep ' id ' | get_field 2`
101 101
 die_if_not_set VM_UUID "Failure launching $NAME"
102 102
 
103
+
103 104
 # Testing
104 105
 # =======
105 106
 
... ...
@@ -40,6 +40,7 @@ CONTAINER=ex-swift
40 40
 # exercise is skipped.
41 41
 is_service_enabled swift || exit 55
42 42
 
43
+
43 44
 # Testing Swift
44 45
 # =============
45 46