use proper variable name INSTANCE_NAME
authorGuido Trotter <ultrotter@google.com>
Fri, 17 Oct 2008 14:21:41 +0000 (14:21 +0000)
committerGuido Trotter <ultrotter@google.com>
Fri, 17 Oct 2008 14:21:41 +0000 (14:21 +0000)
the design doc the api version 10 uses the INSTANCE_NAME variable name
to refer to an instance, but we were incorrectly expecting INSTANCE

Reviwed-by: iustinp

common.sh

index 4aa3bea..3804c5a 100644 (file)
--- a/common.sh
+++ b/common.sh
@@ -34,11 +34,11 @@ get_api5_arguments() {
 }
 
 get_api10_arguments() {
-  if [ -z "$INSTANCE" -o -z "$HYPERVISOR" -o -z "$DISK_COUNT" ]; then
+  if [ -z "$INSTANCE_NAME" -o -z "$HYPERVISOR" -o -z "$DISK_COUNT" ]; then
     echo "Missing OS API Variable"
     exit 1
   fi
-  instance=$INSTANCE
+  instance=$INSTANCE_NAME
   if [ $DISK_COUNT -lt 1 -o -z "$DISK_0_PATH" ]; then
     echo "At least one disk is needed"
     exit 1