diff sat_frontends/jp/cmd_merge_request.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 003b8b4b56a7
children ab2696e34d29
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_merge_request.py	Wed Jun 12 09:11:28 2019 +0200
+++ b/sat_frontends/jp/cmd_merge_request.py	Fri Jun 14 12:37:34 2019 +0200
@@ -20,6 +20,7 @@
 
 import base
 from sat.core.i18n import _
+from sat.tools.common import data_format
 from sat_frontends.jp.constants import Const as C
 from sat_frontends.jp import xmlui_manager
 from sat_frontends.jp import common
@@ -80,7 +81,7 @@
         self.host.quit(C.EXIT_OK)
 
     def sendRequest(self):
-        extra = {"update": "true"} if self.args.item else {}
+        extra = {"update": True} if self.args.item else {}
         values = {}
         if self.args.labels is not None:
             values[u"labels"] = self.args.labels
@@ -92,7 +93,7 @@
             values,
             u"",
             self.args.item,
-            extra,
+            data_format.serialise(extra),
             self.profile,
             callback=self.mergeRequestSetCb,
             errback=partial(