From: Ian Campbell Subject: Re: [PATCH] Xendomains was not correctly suspending domains when a STOP was issued. Date: Thu, 27 Jun 2013 12:59:49 +0100 Message-ID: <1372334389.7996.3.camel@zakaz.uk.xensource.com> References: <1371904691-9842-1-git-send-email-murrayie@yahoo.co.uk> <1372332750.28443.44.camel@zakaz.uk.xensource.com> <1372333915.32035.YahooMailNeo@web171303.mail.ir2.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1372333915.32035.YahooMailNeo@web171303.mail.ir2.yahoo.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Murray Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2013-06-27 at 12:51 +0100, Ian Murray wrote: > Thanks. BTW, the JSON output of 4.3 looked the same to me as 4.2.2 > (i.e. badly formed), so I am not sure the patch you mentioned to make > it well-formed was in as of 4.3 RC5. if/when the well formed patch is > introduced (if it isn't already), it may very well break this > (xendomains) patch. Looks like I was mistaken and that fix was already in 4.2.0 (rc4 to be precise). commit ac963eb7895b8351017bb6005505c2b176202f0e Author: Ian Campbell Date: Thu Aug 23 19:12:28 2012 +0100 xl: make "xl list -l" proper JSON Bastian Blank reports that the output of this command is just multiple JSON objects concatenated and is not a single properly formed JSON object. Fix this by wrapping in an array. This turned out to be a bit more intrusive than I was expecting due to the requirement to keep supporting the SXP output mode. Python's json module is happy to parse the result... Signed-off-by: Ian Campbell Acked-by: Ian Jackson Ian.