Make invirt-lvm lvcreate-all use sqlalchemy correctly.
[invirt/packages/invirt-remote.git] / host / usr / sbin / invirt-remote
index 948d0f0..5168da8 100755 (executable)
@@ -11,30 +11,30 @@ case "$TYPE" in
     control)
         # $SERVICE is hostname
         COMMAND=/usr/sbin/invirt-vmcontrol
     control)
         # $SERVICE is hostname
         COMMAND=/usr/sbin/invirt-vmcontrol
-       ;;
+    ;;
     web)
         case "$SERVICE" in
     web)
         case "$SERVICE" in
-            lvcreate|lvremove|lvrename|lvresize)
+            lvcreate|lvremove|lvrename|lvresize|vgcapacity)
                 COMMAND=/usr/sbin/invirt-lvm
                 COMMAND=/usr/sbin/invirt-lvm
-               ;;
+            ;;
             listvms)
                 COMMAND=/usr/sbin/invirt-listvms
             listvms)
                 COMMAND=/usr/sbin/invirt-listvms
-               ;;
-               info)
-                COMMAND=/usr/sbin/xm
             ;;
             ;;
-            availability)
+            availability|avail)
                 COMMAND=/usr/sbin/invirt-availability
             ;;
             vnccert)
                 COMMAND=/usr/bin/invirt-vnc-getcert
                 ;;
                 COMMAND=/usr/sbin/invirt-availability
             ;;
             vnccert)
                 COMMAND=/usr/bin/invirt-vnc-getcert
                 ;;
+            checkdisks)
+                COMMAND=/usr/sbin/invirt-check-disks
+                ;;
             *)
                 echo "ERROR: invalid subcommand"
                 exit 34
                 ;;
         esac
             *)
                 echo "ERROR: invalid subcommand"
                 exit 34
                 ;;
         esac
-       ;;
+    ;;
     *)
         echo "ERROR: invalid command"
         exit 34
     *)
         echo "ERROR: invalid command"
         exit 34