From d4ce14ee8f7bfbaf05195c06098e04523eef2212 Mon Sep 17 00:00:00 2001 From: Guido Trotter Date: Fri, 17 Oct 2008 14:21:41 +0000 Subject: [PATCH] use proper variable name INSTANCE_NAME 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 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common.sh b/common.sh index 4aa3bea..3804c5a 100644 --- 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 -- 1.7.2.5