[Pkg-xen-changes] r1005 - trunk/xen/debian

Bastian Blank waldi at alioth.debian.org
Fri Apr 27 21:31:13 UTC 2012


Author: waldi
Date: Fri Apr 27 21:31:12 2012
New Revision: 1005

Log:
debian/xen-utils-common.xendomains.init: Don't use return to break out of loop.

Modified:
   trunk/xen/debian/xen-utils-common.xendomains.init

Modified: trunk/xen/debian/xen-utils-common.xendomains.init
==============================================================================
--- trunk/xen/debian/xen-utils-common.xendomains.init	Fri Apr 27 21:29:22 2012	(r1004)
+++ trunk/xen/debian/xen-utils-common.xendomains.init	Fri Apr 27 21:31:12 2012	(r1005)
@@ -113,24 +113,23 @@
 
     if [ "${domains[$name]}" = started ] || check_running "$name"; then
       log_action_msg "Xen domain $name already running"
-      return
-    fi
-
-    log_action_begin_msg "Starting Xen domain $name ($file)"
-
-    if [ "${domains[$name]}" = failed ]; then
-      log_action_end_msg 1 "restore failed"
     else
-      out=$(xen create --quiet --defconfig "$file" 2>&1 1>/dev/null)
-      case "$?" in
-        0) 
-          log_action_end_msg 0
-          ;;
-        *) 
-          log_action_end_msg 1
-          echo "$out"
-          ;;
-      esac
+      log_action_begin_msg "Starting Xen domain $name ($file)"
+
+      if [ "${domains[$name]}" = failed ]; then
+        log_action_end_msg 1 "restore failed"
+      else
+        out=$(xen create --quiet --defconfig "$file" 2>&1 1>/dev/null)
+        case "$?" in
+          0) 
+            log_action_end_msg 0
+            ;;
+          *) 
+            log_action_end_msg 1
+            echo "$out"
+            ;;
+        esac
+      fi
     fi
   done
 }



More information about the Pkg-xen-changes mailing list