aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/target.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2013-10-31 18:46:09 +0100
committerW. Trevor King <wking@tremily.us>2013-10-31 13:26:01 -0700
commit49808306c939de24acabc423024970a76055e52b (patch)
treed8f49aac2841880f2ff7349e72a9cf30c386d1dd /libbe/command/target.py
parenta0e9e3d1bbe32343a1214c0f6b52f24b8108b193 (diff)
downloadbugseverywhere-49808306c939de24acabc423024970a76055e52b.tar.gz
Incorrect accquiring bugdir command line argument
The calling below seems like a typo to me. How can we index with a variable which has not been initialized yet?
Diffstat (limited to 'libbe/command/target.py')
-rw-r--r--libbe/command/target.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbe/command/target.py b/libbe/command/target.py
index 20ffb57..9f76303 100644
--- a/libbe/command/target.py
+++ b/libbe/command/target.py
@@ -99,7 +99,7 @@ class Target (libbe.command.Command):
bugdirs = self._get_bugdirs()
if params['resolve'] == True:
if params['bugdir']:
- bugdir = bugdirs[bugdir]
+ bugdir = bugdirs[params['bugdir']]
elif len(bugdirs) == 1:
bugdir = bugdirs.values()[0]
else: