summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Laska <jlaska@redhat.com>2011-04-14 13:20:02 -0400
committerJames Laska <jlaska@redhat.com>2011-04-14 13:20:02 -0400
commit3d26b2a6f8d8b7fdc10d65a6b6923d99e482b7af (patch)
tree07a3babb1fdb0605b99cbaa66e5e5f4155b10b55
parentc85bf60e0f5409996ad9709f623499345bc348eb (diff)
downloadscripts-3d26b2a6f8d8b7fdc10d65a6b6923d99e482b7af.tar.gz
scripts-3d26b2a6f8d8b7fdc10d65a6b6923d99e482b7af.tar.xz
scripts-3d26b2a6f8d8b7fdc10d65a6b6923d99e482b7af.zip
Convert bug.alias to bug.id
-rwxr-xr-xupdate-blocker-wiki6
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,