direct-io.hg

changeset 15016:4930f0289d0d

[Xen-API] Fix the rtc/timeoffset entry.

It cannot be 'None' as this is not parseable by the Java xmlrpc
library.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author kfraser@localhost.localdomain
date Tue May 08 10:17:46 2007 +0100 (2007-05-08)
parents 9d0dbe9c4d6b
children 3ef0510e44d0
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Mon May 07 13:58:42 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Tue May 08 10:17:46 2007 +0100
     1.3 @@ -867,7 +867,10 @@ class XendDomainInfo:
     1.4  
     1.5          # convert two lists into a python dictionary
     1.6          vm_details = dict(zip(cfg_vm, vm_details))
     1.7 -        
     1.8 +
     1.9 +        if vm_details['rtc/timeoffset'] == None:
    1.10 +            vm_details['rtc/timeoffset'] = "0"
    1.11 +
    1.12          for arg, val in vm_details.items():
    1.13              if arg in XendConfig.LEGACY_CFG_TO_XENAPI_CFG:
    1.14                  xapiarg = XendConfig.LEGACY_CFG_TO_XENAPI_CFG[arg]