ia64/xen-unstable

changeset 14521:fa731dfb90d6

Fix VM.is_a_template.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Thu Mar 22 18:36:53 2007 +0000 (2007-03-22)
parents f6845c09b872
children abd9ae4f1f17
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Thu Mar 22 17:04:55 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Thu Mar 22 18:36:53 2007 +0000
     1.3 @@ -1200,9 +1200,8 @@ class XendAPI(object):
     1.4          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
     1.5          return xen_api_todo()
     1.6      
     1.7 -    def VM_get_is_a_template(self, session, vm_ref):
     1.8 -        dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
     1.9 -        return xen_api_todo()
    1.10 +    def VM_get_is_a_template(self, session, ref):
    1.11 +        return self.VM_get('is_a_template', session, ref)
    1.12      
    1.13      def VM_get_memory_dynamic_max(self, session, vm_ref):
    1.14          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.15 @@ -1481,7 +1480,7 @@ class XendAPI(object):
    1.16              'name_label': xeninfo.getName(),
    1.17              'name_description': xeninfo.getName(),
    1.18              'user_version': 1,
    1.19 -            'is_a_template': False,
    1.20 +            'is_a_template': xeninfo.info.get('is_a_template'),
    1.21              'auto_power_on': False,
    1.22              'resident_on': XendNode.instance().uuid,
    1.23              'memory_static_min': xeninfo.get_memory_static_min(),