Implement VM.set_name_label.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-12-06 11:24:37 +00:00
1 parent 8edc7b1c06
commit 2420eb41c5
1 file changed
+2 -1
+2 -1
View File
@@ -821,8 +821,9 @@ class XendAPI:
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
return xen_api_todo()
def VM_set_name_label(self, session, vm_ref):
def VM_set_name_label(self, session, vm_ref, label):
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
dom.setName(label)
return xen_api_success_void()
def VM_set_name_description(self, session, vm_ref):
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.