diff sat/plugins/plugin_misc_merge_requests.py @ 2959:989b622faff6

plugins schema, tickets, merge_requests: use serialised data for extra dict + some cosmetic changes
author Goffi <goffi@goffi.org>
date Fri, 14 Jun 2019 12:37:34 +0200
parents b2f323237fce
children ab2696e34d29
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_merge_requests.py	Wed Jun 12 09:11:28 2019 +0200
+++ b/sat/plugins/plugin_misc_merge_requests.py	Fri Jun 14 12:37:34 2019 +0200
@@ -79,7 +79,7 @@
                               async=True
                               )
         host.bridge.addMethod("mergeRequestSet", ".plugin",
-                              in_sign='ssssa{sas}ssa{ss}s', out_sign='s',
+                              in_sign='ssssa{sas}ssss', out_sign='s',
                               method=self._set,
                               async=True)
         host.bridge.addMethod("mergeRequestsSchemaGet", ".plugin",
@@ -191,7 +191,7 @@
         defer.returnValue((tickets_xmlui, metadata, parsed_patches))
 
     def _set(self, service, node, repository, method, values, schema=None, item_id=None,
-             extra=None, profile_key=C.PROF_KEY_NONE):
+             extra=u"", profile_key=C.PROF_KEY_NONE):
         client, service, node, schema, item_id, extra = self._s.prepareBridgeSet(
             service, node, schema, item_id, extra, profile_key)
         d = self.set(client, service, node, repository, method, values, schema,