ia64/xen-unstable

changeset 15616:2cbaa58b1311

[xend][xen-api] Save new memory values in domain config when calling
VM.set_memory_[dynamic|static]_[min|max] via Xen API.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author kfraser@localhost.localdomain
date Wed Jul 18 10:10:04 2007 +0100 (2007-07-18)
parents 9c077fc8ccf1
children ad1c6cf0baaf
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Wed Jul 18 10:09:06 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Wed Jul 18 10:10:04 2007 +0100
     1.3 @@ -1410,22 +1410,22 @@ class XendAPI(object):
     1.4      def VM_set_memory_dynamic_max(self, session, vm_ref, mem):
     1.5          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
     1.6          dom.set_memory_dynamic_max(int(mem))
     1.7 -        return xen_api_success_void()
     1.8 +        return self._VM_save(dom)
     1.9  
    1.10      def VM_set_memory_dynamic_min(self, session, vm_ref, mem):
    1.11          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.12          dom.set_memory_dynamic_min(int(mem))
    1.13 -        return xen_api_success_void()
    1.14 +        return self._VM_save(dom)
    1.15  
    1.16      def VM_set_memory_static_max(self, session, vm_ref, mem):
    1.17          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.18          dom.set_memory_static_max(int(mem))
    1.19 -        return xen_api_success_void()
    1.20 +        return self._VM_save(dom)
    1.21      
    1.22      def VM_set_memory_static_min(self, session, vm_ref, mem):
    1.23          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.24          dom.set_memory_static_min(int(mem))
    1.25 -        return xen_api_success_void()
    1.26 +        return self._VM_save(dom)
    1.27  
    1.28      def VM_set_memory_dynamic_max_live(self, session, vm_ref, mem):
    1.29          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)