diff options
author | Alastair Tse <atse@xensource.com> | 2006-12-01 17:31:30 +0000 |
---|---|---|
committer | Alastair Tse <atse@xensource.com> | 2006-12-01 17:31:30 +0000 |
commit | 0ee9d7cc2975f35bebf15b3da8f587447e7f3d27 (patch) | |
tree | 9039b5adb1f2c7dc69fa52815b4d423bc911bf4b /tools/python/scripts | |
parent | 486d848417aae8583ae7676618010410a8305f1c (diff) | |
download | xen-0ee9d7cc2975f35bebf15b3da8f587447e7f3d27.tar.gz xen-0ee9d7cc2975f35bebf15b3da8f587447e7f3d27.tar.bz2 xen-0ee9d7cc2975f35bebf15b3da8f587447e7f3d27.zip |
[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>
Diffstat (limited to 'tools/python/scripts')
-rw-r--r-- | tools/python/scripts/xapi.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/python/scripts/xapi.py b/tools/python/scripts/xapi.py index 7eb96e8945..07d886698b 100644 --- a/tools/python/scripts/xapi.py +++ b/tools/python/scripts/xapi.py @@ -29,7 +29,7 @@ from getpass import getpass MB = 1024 * 1024 HOST_INFO_FORMAT = '%-20s: %-50s' -VM_LIST_FORMAT = '%(name_label)-18s %(memory_actual)-5s %(vcpus_number)-5s'\ +VM_LIST_FORMAT = '%(name_label)-18s %(memory_actual)-5s %(VCPUs_number)-5s'\ ' %(power_state)-10s %(uuid)-36s' SR_LIST_FORMAT = '%(name_label)-18s %(uuid)-36s %(physical_size)-10s' \ '%(type)-10s' @@ -226,7 +226,7 @@ def xapi_vm_list(*args): if not is_long: print VM_LIST_FORMAT % {'name_label':'Name', 'memory_actual':'Mem', - 'vcpus_number': 'VCPUs', + 'VCPUs_number': 'VCPUs', 'power_state': 'State', 'uuid': 'UUID'} @@ -286,7 +286,7 @@ def xapi_vm_start(*args): server, session = _connect() vm_uuid = resolve_vm(server, session, args[0]) print 'Starting VM %s (%s)' % (args[0], vm_uuid) - success = execute(server.VM.start, session, vm_uuid) + success = execute(server.VM.start, session, vm_uuid, False) print 'Done.' def xapi_vm_shutdown(*args): |