diff options
-rwxr-xr-x | update-blocker-wiki | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/update-blocker-wiki b/update-blocker-wiki index 8a2ea7d..ec88197 100755 --- a/update-blocker-wiki +++ b/update-blocker-wiki @@ -130,6 +130,12 @@ if __name__ == '__main__': # Connect to bugzilla bz = bugzilla.RHBugzilla3(url='https://bugzilla.redhat.com/xmlrpc.cgi') + # If needed, Convert bug alias to number + if not opts.blocker.isdigit(): + opts.blocker = bz.getbug(opts.blocker).id + if not opts.nth.isdigit(): + opts.nth = bz.getbug(opts.nth).id + # Get a list of accepted blocker bugs if opts.verbose: print 'Querying accepted blocker bugs ...' q = {'bug_status': BUG_STATUS, |