[2/2] start-sru-cycle: convert bug IDs to strings before appending

Message ID 20170405140831.12826-2-cascardo@canonical.com
State New
Headers show

Commit Message

Thadeu Lima de Souza Cascardo April 5, 2017, 2:08 p.m.
Otherwise, the script will just fail when creating backports and
derivatives tracking bugs.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
---
 stable/start-sru-cycle | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Stefan Bader April 6, 2017, 12:48 p.m. | #1

Patch

diff --git a/stable/start-sru-cycle b/stable/start-sru-cycle
index cfac5bc..2459785 100755
--- a/stable/start-sru-cycle
+++ b/stable/start-sru-cycle
@@ -104,7 +104,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 = []
@@ -112,7 +112,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