convert config data as string while putting to OBS
authorZhang Qiang <qiang.z.zhang@intel.com>
Mon, 20 Aug 2012 07:28:41 +0000 (15:28 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Mon, 20 Aug 2012 07:28:41 +0000 (15:28 +0800)
This will cause exception/backtrace with some system. fix #240

gitbuildsys/oscapi.py

index 5eb337c..7153fe9 100644 (file)
@@ -128,7 +128,7 @@ class OSC(object):
         url = core.make_meta_url("prjconf", quote_plus(target),
                                  self.apiurl, False)
         try:
-            self.core_http(core.http_PUT, url, data=config)
+            self.core_http(core.http_PUT, url, data=''.join(config))
         except OSCError, err:
             raise OSCError("can't copy config from %s to %s: %s" \
                            % (src, target, err))