ia64/xen-unstable

changeset 12758:5d0efb6f3983

[XENAPI] Add extra param for VM.start and fix case for printing out
the output of VM.get_record.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Fri Dec 01 17:31:30 2006 +0000 (2006-12-01)
parents e3d62983bc2f
children 4b577c1909a9
files tools/python/scripts/xapi.py
line diff
     1.1 --- a/tools/python/scripts/xapi.py	Fri Dec 01 17:30:39 2006 +0000
     1.2 +++ b/tools/python/scripts/xapi.py	Fri Dec 01 17:31:30 2006 +0000
     1.3 @@ -29,7 +29,7 @@ from getpass import getpass
     1.4  MB = 1024 * 1024
     1.5  
     1.6  HOST_INFO_FORMAT = '%-20s: %-50s'
     1.7 -VM_LIST_FORMAT = '%(name_label)-18s %(memory_actual)-5s %(vcpus_number)-5s'\
     1.8 +VM_LIST_FORMAT = '%(name_label)-18s %(memory_actual)-5s %(VCPUs_number)-5s'\
     1.9                   ' %(power_state)-10s %(uuid)-36s'
    1.10  SR_LIST_FORMAT = '%(name_label)-18s %(uuid)-36s %(physical_size)-10s' \
    1.11                   '%(type)-10s'
    1.12 @@ -226,7 +226,7 @@ def xapi_vm_list(*args):
    1.13      if not is_long:
    1.14          print VM_LIST_FORMAT % {'name_label':'Name',
    1.15                                  'memory_actual':'Mem',
    1.16 -                                'vcpus_number': 'VCPUs',
    1.17 +                                'VCPUs_number': 'VCPUs',
    1.18                                  'power_state': 'State',
    1.19                                  'uuid': 'UUID'}
    1.20  
    1.21 @@ -286,7 +286,7 @@ def xapi_vm_start(*args):
    1.22      server, session = _connect()
    1.23      vm_uuid = resolve_vm(server, session, args[0])
    1.24      print 'Starting VM %s (%s)' % (args[0], vm_uuid)
    1.25 -    success = execute(server.VM.start, session, vm_uuid)
    1.26 +    success = execute(server.VM.start, session, vm_uuid, False)
    1.27      print 'Done.'
    1.28  
    1.29  def xapi_vm_shutdown(*args):