[kteam-tools] stable/start-sru-cycle: Fix derivative and backport list update

Submitted by Stefan Bader on April 12, 2017, 6:59 p.m.

Details

Message ID 1492023581-29474-1-git-send-email-stefan.bader@canonical.com
State New
Headers show

Commit Message

Stefan Bader April 12, 2017, 6:59 p.m.
The lists derivatives and backports must contain strings for the
join to work. Otherwise the command fails when trying to add
backports and derivatives to the description of the master bug.

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
---
 stable/start-sru-cycle | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Stefan Bader April 13, 2017, 9:52 a.m.
Stupid me, this is actually the same thing that I acked for Thadeu. That is just
pending application...

-Stefan

Patch hide | download patch | download mbox

diff --git a/stable/start-sru-cycle b/stable/start-sru-cycle
index acfd689..daab835 100755
--- a/stable/start-sru-cycle
+++ b/stable/start-sru-cycle
@@ -106,7 +106,7 @@  class Crankers():
                         print('        %s:%s' % (backport_series, backport_project))
                         bug = tb.open(backport_project, '<version to be filled>', True, master_bug.id, backport_series)
                         bug.tags.append(cycle_tag)
-                        backports.append(bug.id)
+                        backports.append(str(bug.id))
                         bug.tags.append('kernel-sru-backport-of-%s' % master_bug.id)
 
                     derivatives = []
@@ -114,7 +114,7 @@  class Crankers():
                         print('        ' + derivative_project)
                         bug = tb.open(derivative_project, '<version to be filled>', True, master_bug.id, series)
                         bug.tags.append(cycle_tag)
-                        derivatives.append(bug.id)
+                        derivatives.append(str(bug.id))
                         bug.tags.append('kernel-sru-derivative-of-%s' % master_bug.id)
 
                     description = master_bug.description