changeset 2472:3f0a3a0ed290

plugins tickets, merge-requests: fixed call of prepareBridgeSet
author Goffi <goffi@goffi.org>
date Sat, 13 Jan 2018 10:03:32 +0100
parents 544c4d2fec45
children 447c3de6b9e5
files src/plugins/plugin_misc_merge_requests.py src/plugins/plugin_misc_tickets.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_misc_merge_requests.py	Fri Jan 12 15:58:54 2018 +0100
+++ b/src/plugins/plugin_misc_merge_requests.py	Sat Jan 13 10:03:32 2018 +0100
@@ -168,8 +168,8 @@
         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):
-        client, service, schema, extra = self._s.prepareBridgeSet(service, node, schema, extra)
-        d = self.set(client, service, node or None, repository, method, values, schema, item_id or None, extra, deserialise=True)
+        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, item_id, extra, deserialise=True)
         d.addCallback(lambda ret: ret or u'')
         return d
 
--- a/src/plugins/plugin_misc_tickets.py	Fri Jan 12 15:58:54 2018 +0100
+++ b/src/plugins/plugin_misc_tickets.py	Sat Jan 13 10:03:32 2018 +0100
@@ -73,8 +73,8 @@
                               async=True)
 
     def _set(self, service, node, values, schema=None, item_id=None, extra=None, profile_key=C.PROF_KEY_NONE):
-        client, service, schema, extra = self._s.prepareBridgeSet(service, node, schema, item_id, extra)
-        d = self.set(client, service, node or None, values, schema, item_id or None, extra, deserialise=True)
+        client, service, node, schema, item_id, extra = self._s.prepareBridgeSet(service, node, schema, item_id, extra, profile_key)
+        d = self.set(client, service, node, values, schema, item_id, extra, deserialise=True)
         d.addCallback(lambda ret: ret or u'')
         return d