OLD/NEW swap, fix get_api10_arguments too
authorGuido Trotter <ultrotter@google.com>
Thu, 16 Oct 2008 16:38:53 +0000 (16:38 +0000)
committerGuido Trotter <ultrotter@google.com>
Thu, 16 Oct 2008 16:38:53 +0000 (16:38 +0000)
Reviewed-by: iustinp

common.sh

index 62cea59..4aa3bea 100644 (file)
--- a/common.sh
+++ b/common.sh
@@ -44,10 +44,10 @@ get_api10_arguments() {
     exit 1
   fi
   blockdev=$DISK_0_PATH
-  if [ "$0" = "rename" -a -z "$NEW_INSTANCE_NAME" ]; then
+  if [ "$0" = "rename" -a -z "$OLD_INSTANCE_NAME" ]; then
     echo "Missing OS API Variable"
   fi
-  new_name=$NEW_INSTANCE_NAME
+  old_name=$OLD_INSTANCE_NAME
 }
 
 if [ -z "$OS_API_VERSION" -o "$OS_API_VERSION" = "5" ]; then