<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 29, 2016 at 2:57 AM, Sujith Haridasan <span dir="ltr">&lt;<a href="mailto:sujith.h@gmail.com" target="_blank">sujith.h@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":12h" class="a3s aXjCH m158af84dbcba6f08">From: Sujith H &lt;<a href="mailto:sujith.h@gmail.com">sujith.h@gmail.com</a>&gt;<br>
<br>
We assume that the value taken by variable v can be string,<br>
integer or any type which can be marshalled by xmlrpc. This<br>
change would help us to convert the non marshallable types<br>
to string. So that we don&#39;t get exception from xmlrpc.<br>
<br>
[YOCTO #10740]<br>
<br>
Signed-off-by: Sujith H &lt;<a href="mailto:sujith.h@gmail.com">sujith.h@gmail.com</a>&gt;<br>
---<br>
<span class=""> <span class="il">bitbake</span>/lib/bb/cooker.py | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
</span>diff --git a/<span class="il">bitbake</span>/lib/bb/cooker.py b/<span class="il">bitbake</span>/lib/bb/cooker.py<br>
index c08af45..1dab450 100644<br>
--- a/<span class="il">bitbake</span>/lib/bb/cooker.py<br>
+++ b/<span class="il">bitbake</span>/lib/bb/cooker.py<br>
@@ -1488,7 +1488,7 @@ class BBCooker:<br>
                 v = self.data.getVar(k, expand)<br>
                 if not k.startswith(&quot;__&quot;) and not isinstance(v, bb.data_smart.DataSmart):<br>
                     dump[k] = {<br>
-    &#39;v&#39; : v ,<br>
+    &#39;v&#39; : repr(v) ,<br>
     &#39;history&#39; : self.data.varhistory.variable(<wbr>k),<br>
                     }<br>
                     for d in flaglist:</div></blockquote></div><br>I think str(v) would be more appropriate here. We need it to be a string, not necessarily a more complete representation of the object.<br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>