direct-io.hg

changeset 13749:3291a7b48731

[XEND] Make sure other_config is by default an empty string map.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Wed Jan 31 15:04:06 2007 +0000 (2007-01-31)
parents 5d12faee0708
children 0c91fd1c92c7
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Wed Jan 31 15:03:22 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Wed Jan 31 15:04:06 2007 +0000
     1.3 @@ -1186,7 +1186,7 @@ class XendAPI(object):
     1.4          return xen_api_success(dom.get_platform_keymap())
     1.5      
     1.6      def VM_get_other_config(self, session, vm_ref):
     1.7 -        return self.VM_get('otherconfig', session, vm_ref)        
     1.8 +        return self.VM_get('other_config', session, vm_ref)        
     1.9  
    1.10      def VM_get_is_control_domain(self, session, vm_ref):
    1.11          xd = XendDomain.instance()
    1.12 @@ -1363,7 +1363,7 @@ class XendAPI(object):
    1.13              'platform_keymap': xeninfo.get_platform_keymap(),
    1.14              'PCI_bus': xeninfo.get_pci_bus(),
    1.15              'tools_version': xeninfo.get_tools_version(),
    1.16 -            'other_config': xeninfo.info.get('otherconfig'),
    1.17 +            'other_config': xeninfo.info.get('other_config', {}),
    1.18              'is_control_domain': xeninfo == xendom.privilegedDomain(),
    1.19          }
    1.20          return xen_api_success(record)