mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
[XEND] Make sure other_config is by default an empty string map.
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
1f66881925
commit
975e8c9154
1 file changed
+2
-2
@@ -1186,7 +1186,7 @@ class XendAPI(object):
|
||||
return xen_api_success(dom.get_platform_keymap())
|
||||
|
||||
def VM_get_other_config(self, session, vm_ref):
|
||||
return self.VM_get('otherconfig', session, vm_ref)
|
||||
return self.VM_get('other_config', session, vm_ref)
|
||||
|
||||
def VM_get_is_control_domain(self, session, vm_ref):
|
||||
xd = XendDomain.instance()
|
||||
@@ -1363,7 +1363,7 @@ class XendAPI(object):
|
||||
'platform_keymap': xeninfo.get_platform_keymap(),
|
||||
'PCI_bus': xeninfo.get_pci_bus(),
|
||||
'tools_version': xeninfo.get_tools_version(),
|
||||
'other_config': xeninfo.info.get('otherconfig'),
|
||||
'other_config': xeninfo.info.get('other_config', {}),
|
||||
'is_control_domain': xeninfo == xendom.privilegedDomain(),
|
||||
}
|
||||
return xen_api_success(record)
|
||||
|
||||