[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH][xend] Save memory values changed via Xen API
Memory values changed via Xen API methods VM.set_memory_[dynamic|static]_[min|max] are not saved to managed domain's config. Attached is a trivial fix. Regards, Jim # HG changeset patch # User Jim Fehlig <jfehlig@xxxxxxxxxx> # Date 1184711414 21600 # Node ID ff3f73de683f9c720ba3c2922d4f51897b9b5ef0 # Parent 1f348e70a5affdea9b44c1e39cd5ef094ad4a0bf 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@xxxxxxxxxx> diff -r 1f348e70a5af -r ff3f73de683f tools/python/xen/xend/XendAPI.py --- a/tools/python/xen/xend/XendAPI.py Tue Jul 10 11:10:38 2007 +0100 +++ b/tools/python/xen/xend/XendAPI.py Tue Jul 17 16:30:14 2007 -0600 @@ -1410,22 +1410,22 @@ class XendAPI(object): def VM_set_memory_dynamic_max(self, session, vm_ref, mem): dom = XendDomain.instance().get_vm_by_uuid(vm_ref) dom.set_memory_dynamic_max(int(mem)) - return xen_api_success_void() + return self._VM_save(dom) def VM_set_memory_dynamic_min(self, session, vm_ref, mem): dom = XendDomain.instance().get_vm_by_uuid(vm_ref) dom.set_memory_dynamic_min(int(mem)) - return xen_api_success_void() + return self._VM_save(dom) def VM_set_memory_static_max(self, session, vm_ref, mem): dom = XendDomain.instance().get_vm_by_uuid(vm_ref) dom.set_memory_static_max(int(mem)) - return xen_api_success_void() + return self._VM_save(dom) def VM_set_memory_static_min(self, session, vm_ref, mem): dom = XendDomain.instance().get_vm_by_uuid(vm_ref) dom.set_memory_static_min(int(mem)) - return xen_api_success_void() + return self._VM_save(dom) def VM_set_memory_dynamic_max_live(self, session, vm_ref, mem): dom = XendDomain.instance().get_vm_by_uuid(vm_ref) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |