Skip to contentSkip to conversation

bitbake: cooker: convert type which needs to be marshalled

PATCH New Sujith H 1 participant 1 message Dec 6, 2016

lore
Share & tools
lore

Sujith H

author
#0 lore raw

PATCH v3 1/1 bitbake: 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]

---
 bitbake/lib/bb/cooker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bb/cooker.py +1 -1
index c08af45..d59cd7b 100644
@@ -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:
Signature · 1 line
1.9.1