[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Replace tab with 4 whitespaces in xm/shutdown.py.
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |