ia64/xen-unstable

changeset 12811:795a87426e48

Implement VM.set_name_label.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Wed Dec 06 11:24:37 2006 +0000 (2006-12-06)
parents cf1ca0615414
children 26a3c7c10782
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Wed Dec 06 11:02:32 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Wed Dec 06 11:24:37 2006 +0000
     1.3 @@ -821,8 +821,9 @@ class XendAPI:
     1.4          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
     1.5          return xen_api_todo()
     1.6      
     1.7 -    def VM_set_name_label(self, session, vm_ref):
     1.8 +    def VM_set_name_label(self, session, vm_ref, label):
     1.9          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.10 +        dom.setName(label)
    1.11          return xen_api_success_void()
    1.12      
    1.13      def VM_set_name_description(self, session, vm_ref):