summaryrefslogtreecommitdiffstats
path: root/lib/bb/cooker.py
diff options
context:
space:
mode:
authorSujith H <sujith.h@gmail.com>2016-12-01 11:13:09 +0530
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-07 10:42:15 +0000
commitefb0e47479b3526bc047112f7200087c5844bba4 (patch)
treec3d2b8aa020efe08e54d85740f332095e00a5238 /lib/bb/cooker.py
parent7df842f8f8b2ae640109ed06729ab59c9469fc64 (diff)
downloadbitbake-contrib-efb0e47479b3526bc047112f7200087c5844bba4.tar.gz
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 <sujith.h@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cooker.py')
-rw-r--r--lib/bb/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 1b820d883..29f715634 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: