From: Sujith H Date: Thu, 1 Dec 2016 05:43:09 +0000 (+0530) Subject: cooker: convert type which needs to be marshalled X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efb0e47479b3526bc047112f7200087c5844bba4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git cooker: convert type which needs to be marshalled We assume that the value taken by variable v can be string, integer or any type which can be marshalled by xmlrpc. This change would help us to convert the non marshallable types to string. So that we don't get exception from xmlrpc. [YOCTO #10740] Signed-off-by: Sujith H Signed-off-by: Richard Purdie --- diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 1b820d88368..29f7156341b 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -1488,7 +1488,7 @@ class BBCooker: v = self.data.getVar(k, expand) if not k.startswith("__") and not isinstance(v, bb.data_smart.DataSmart): dump[k] = { - 'v' : v , + 'v' : str(v) , 'history' : self.data.varhistory.variable(k), } for d in flaglist: