Support API version 15 (with OS variants)
authorGuido Trotter <ultrotter@google.com>
Fri, 2 Oct 2009 15:03:50 +0000 (16:03 +0100)
committerGuido Trotter <ultrotter@google.com>
Sat, 3 Oct 2009 22:39:14 +0000 (23:39 +0100)
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Olivier Tharan <olive@google.com>

common.sh.in
ganeti_api_version

index ad4e99e..2acab86 100644 (file)
@@ -176,7 +176,7 @@ if [ -z "$OS_API_VERSION" -o "$OS_API_VERSION" = "5" ]; then
   GETOPT_RESULT=`getopt -o o:n:i:b:s: -n '$0' -- "$@"`
   if [ $? != 0 ] ; then log_error "Terminating..."; exit 1 ; fi
   get_api5_arguments $GETOPT_RESULT
-elif [ "$OS_API_VERSION" = "10" ]; then
+elif [ "$OS_API_VERSION" = "10" -o "$OS_API_VERSION" = "15" ]; then
   get_api10_arguments
 else
   log_error "Unknown OS API VERSION $OS_API_VERSION"
index c3ec801..43484f9 100644 (file)
@@ -1,2 +1,3 @@
 5
 10
+15