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 5eb337ca07a836ae8428701bdea4270d61bb3a94..7153fe90a4e0cb4c607d6935bf1239d20d715ddf 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))