From 76898c9aae61e4f18ab068ded30dceff6f19c492 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Apr 10 2017 18:18:09 +0000 Subject: Adjust to python-bugzilla 2.x API Signed-off-by: Adam Williamson --- diff --git a/testdays/cli.py b/testdays/cli.py index b9e66c6..a4b35e7 100755 --- a/testdays/cli.py +++ b/testdays/cli.py @@ -53,7 +53,7 @@ class Cli(object): # We don't do anything that needs authentication yet, so just # instantiate the wiki and bugzilla but don't log in self.site = wikitcms.wiki.Wiki() - self.bz = bugzilla.rhbugzilla.RHBugzilla( + self.bz = bugzilla.RHBugzilla( url='https://bugzilla.redhat.com/xmlrpc.cgi') def get_stats(self, testday): @@ -76,7 +76,8 @@ class Cli(object): # Generate bug stats using the 'bugs' page property, which # also finds bugs that can't be associated with a specific # result - bugs = self.bz.getbugssimple(testday.bugs) + print(testday.bugs) + bugs = self.bz.getbugs(testday.bugs) # Filter out Nones caused by bad bug IDs bugs = [bug for bug in bugs if bug] if bugs: