WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Replace tab with 4 whitespaces in xm/shut

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Replace tab with 4 whitespaces in xm/shutdown.py.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Mar 2007 21:50:14 -0700
Delivery-date: Thu, 15 Mar 2007 21:49:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1173977640 0
# Node ID b926f66f29ab514cc85c16d40a7d212082c7c2f4
# Parent  d6ca67c0645e30bb4cecf1ddbccecf0c74ca2021
Replace tab with 4 whitespaces in xm/shutdown.py.
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/python/xen/xm/shutdown.py |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff -r d6ca67c0645e -r b926f66f29ab tools/python/xen/xm/shutdown.py
--- a/tools/python/xen/xm/shutdown.py   Thu Mar 15 15:27:08 2007 +0000
+++ b/tools/python/xen/xm/shutdown.py   Thu Mar 15 16:54:00 2007 +0000
@@ -51,7 +51,7 @@ gopts.opt('reboot', short='R',
 
 def wait_reboot(opts, doms, rcs):
     if serverType == SERVER_XEN_API:
-           opts.err("Cannot wait for reboot w/ XenAPI (yet)")
+        opts.err("Cannot wait for reboot w/ XenAPI (yet)")
 
     while doms:
         alive = server.xend.domains(0)
@@ -73,7 +73,7 @@ def wait_shutdown(opts, doms):
 def wait_shutdown(opts, doms):
     while doms:
         if serverType == SERVER_XEN_API:
-                   alive = [dom for dom in server.xenapi.VM.get_all()
+            alive = [dom for dom in server.xenapi.VM.get_all()
                      if server.xenapi.VM.get_power_state(dom) ==
                      XEN_API_VM_POWER_STATE[XEN_API_VM_POWER_STATE_RUNNING]]
         else:
@@ -91,16 +91,16 @@ def shutdown(opts, doms, mode, wait):
 def shutdown(opts, doms, mode, wait):
     rcs = {}
     for d in doms:
-               if serverType == SERVER_XEN_API:
-                       if mode == 'halt':
-                               server.xenapi.VM.clean_shutdown(d)
-                       if mode == 'reboot':
-                               server.xenapi.VM.clean_reboot(d)
-                       if mode == 'poweroff':
-                               server.xenapi.VM.clean_shutdown(d)              
                
-               else:
-                       rcs[d] = server.xend.domain.getRestartCount(d)
-                       server.xend.domain.shutdown(d, mode)
+        if serverType == SERVER_XEN_API:
+            if mode == 'halt':
+                server.xenapi.VM.clean_shutdown(d)
+            if mode == 'reboot':
+                server.xenapi.VM.clean_reboot(d)
+            if mode == 'poweroff':
+                server.xenapi.VM.clean_shutdown(d)
+        else:
+            rcs[d] = server.xend.domain.getRestartCount(d)
+            server.xend.domain.shutdown(d, mode)
 
     if wait:
         if mode == 'reboot':
@@ -135,7 +135,7 @@ def main_dom(opts, args):
     if len(args) >  1: opts.err('No multiple domain parameters allowed')
     dom = args[0]
     if serverType == SERVER_XEN_API:
-               dom = get_single_vm(dom)
+        dom = get_single_vm(dom)
     mode = shutdown_mode(opts)  
     shutdown(opts, [ dom ], mode, opts.vals.wait)
     

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Replace tab with 4 whitespaces in xm/shutdown.py., Xen patchbot-unstable <=