[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Fix VM.is_a_template.
# HG changeset patch # User Ewan Mellor <ewan@xxxxxxxxxxxxx> # Date 1174588613 0 # Node ID fa731dfb90d639cac9a01e99d62109e343fb5f76 # Parent f6845c09b87286610086898ad777e3ee7c61d816 Fix VM.is_a_template. Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx> --- tools/python/xen/xend/XendAPI.py | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff -r f6845c09b872 -r fa731dfb90d6 tools/python/xen/xend/XendAPI.py --- a/tools/python/xen/xend/XendAPI.py Thu Mar 22 17:04:55 2007 +0000 +++ b/tools/python/xen/xend/XendAPI.py Thu Mar 22 18:36:53 2007 +0000 @@ -1200,9 +1200,8 @@ class XendAPI(object): dom = XendDomain.instance().get_vm_by_uuid(vm_ref) return xen_api_todo() - def VM_get_is_a_template(self, session, vm_ref): - dom = XendDomain.instance().get_vm_by_uuid(vm_ref) - return xen_api_todo() + def VM_get_is_a_template(self, session, ref): + return self.VM_get('is_a_template', session, ref) def VM_get_memory_dynamic_max(self, session, vm_ref): dom = XendDomain.instance().get_vm_by_uuid(vm_ref) @@ -1481,7 +1480,7 @@ class XendAPI(object): 'name_label': xeninfo.getName(), 'name_description': xeninfo.getName(), 'user_version': 1, - 'is_a_template': False, + 'is_a_template': xeninfo.info.get('is_a_template'), 'auto_power_on': False, 'resident_on': XendNode.instance().uuid, 'memory_static_min': xeninfo.get_memory_static_min(), _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |