From: Keir Fraser Subject: Re: [PATCH] [Xen-API] Patch for fixing the rtc/timeoffset entry Date: Mon, 07 May 2007 14:01:59 +0100 Message-ID: References: <1178376145.4294.5.camel@gsal-3.watson.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1178376145.4294.5.camel@gsal-3.watson.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefan Berger , xen-devel Cc: Ewan Mellor List-Id: xen-devel@lists.xenproject.org On 5/5/07 15:42, "Stefan Berger" wrote: > This patch rewrites the rtc/timeoffset entry so the VM's record can be > retrieved with the Java xmlrpc library. If the entry is 'None' it upsets > the xmlrpc parser. This fixes it, though maybe there's a better place in > xend to place similar code. Can't the second argument to vm_details.get() be changed to "0"? If not, could you just do 'foo = vm_details.get(...) or "0"'? -- Keir