ia64/xen-unstable

changeset 13174:e60644c61371

Move get_by_uuid to the right place to have the input validated. The recent
move was wrong.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Sat Dec 23 11:23:27 2006 +0000 (2006-12-23)
parents bbd1c469ff5b
children 777bbae06fdb
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Sat Dec 23 09:40:18 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Sat Dec 23 11:23:27 2006 +0000
     1.3 @@ -306,7 +306,7 @@ class XendAPI:
     1.4  
     1.5      Base_attr_ro = ['uuid']
     1.6      Base_attr_rw = []
     1.7 -    Base_methods = ['destroy', 'get_record']
     1.8 +    Base_methods = ['destroy', 'get_by_uuid', 'get_record']
     1.9      Base_funcs   = ['create', 'get_all']
    1.10  
    1.11      # Xen API: Class Session
    1.12 @@ -378,7 +378,7 @@ class XendAPI:
    1.13                      'reboot',
    1.14                      'shutdown']
    1.15      
    1.16 -    host_funcs = ['get_by_uuid', 'get_by_name_label']
    1.17 +    host_funcs = ['get_by_name_label']
    1.18  
    1.19      # attributes
    1.20      def host_get_name_label(self, session, host_ref):
    1.21 @@ -547,7 +547,7 @@ class XendAPI:
    1.22                    'suspend',
    1.23                    'resume']
    1.24      
    1.25 -    VM_funcs  = ['get_by_uuid', 'get_by_name_label']
    1.26 +    VM_funcs  = ['get_by_name_label']
    1.27  
    1.28      # parameters required for _create()
    1.29      VM_attr_inst = [
    1.30 @@ -1111,7 +1111,7 @@ class XendAPI:
    1.31      VDI_attr_inst = VDI_attr_ro + VDI_attr_rw
    1.32  
    1.33      VDI_methods = ['snapshot']
    1.34 -    VDI_funcs = ['get_by_uuid', 'get_by_name_label']
    1.35 +    VDI_funcs = ['get_by_name_label']
    1.36      
    1.37      def VDI_get_VBDs(self, session, vdi_ref):
    1.38          return xen_api_todo()
    1.39 @@ -1355,7 +1355,7 @@ class XendAPI:
    1.40                      'name_description']
    1.41      
    1.42      SR_methods = ['clone']
    1.43 -    SR_funcs = ['get_by_uuid', 'get_by_name_label']
    1.44 +    SR_funcs = ['get_by_name_label']
    1.45  
    1.46      # Class Functions
    1.47      def SR_get_all(self, session):