From 7ff32b5efb8ed51864dfe49872ad2df60160ae4b Mon Sep 17 00:00:00 2001 From: Guido Trotter Date: Thu, 16 Oct 2008 16:38:53 +0000 Subject: [PATCH] OLD/NEW swap, fix get_api10_arguments too Reviewed-by: iustinp --- common.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common.sh b/common.sh index 62cea59..4aa3bea 100644 --- 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 -- 1.7.2.5