summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2007-09-18 11:45:56 -0400
committerWill Woods <wwoods@redhat.com>2007-09-18 11:45:56 -0400
commit6921d9a001a0ecb338bcce6b1d09f1e34f9b802c (patch)
tree75ac01e664ebdc0d55b6510ad41e96f9a2eba064
parentaa7576fa472b30b51688436cb9924b3c0e76dc75 (diff)
downloadpython-bugzilla-6921d9a001a0ecb338bcce6b1d09f1e34f9b802c.tar.gz
python-bugzilla-6921d9a001a0ecb338bcce6b1d09f1e34f9b802c.tar.xz
python-bugzilla-6921d9a001a0ecb338bcce6b1d09f1e34f9b802c.zip
Fix query --bug_status, clean up --bug_id
-rwxr-xr-xbugzilla7
1 files changed, 2 insertions, 5 deletions
diff --git a/bugzilla b/bugzilla
index cd72492..0597b59 100755
--- a/bugzilla
+++ b/bugzilla
@@ -137,10 +137,7 @@ if __name__ == '__main__':
elif action == 'query':
# shortcut for specific bug_ids
if opt.bug_id:
- if ',' in opt.bug_id:
- buglist=bz.getbugs(opt.bug_id.split(','))
- else:
- buglist=[bz.getbug(opt.bug_id)]
+ buglist=bz.getbugs(opt.bug_id.split(','))
else:
# Construct the query from the list of queryable options
q = dict()
@@ -151,7 +148,7 @@ if __name__ == '__main__':
i = getattr(opt,a)
if i:
if a in ('bug_status'): # list args
- q[a] = i.split(',').strip()
+ q[a] = i.split(',')
elif a in ('cc','assigned_to'):
# the email query fields are kind of weird - thanks
# to Florian La Roche for figuring this bit out.