diff options
author | Matěj Cepl <mcepl@redhat.com> | 2013-10-31 18:46:09 +0100 |
---|---|---|
committer | W. Trevor King <wking@tremily.us> | 2013-10-31 13:26:01 -0700 |
commit | 49808306c939de24acabc423024970a76055e52b (patch) | |
tree | d8f49aac2841880f2ff7349e72a9cf30c386d1dd /libbe/command | |
parent | a0e9e3d1bbe32343a1214c0f6b52f24b8108b193 (diff) | |
download | bugseverywhere-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')
-rw-r--r-- | libbe/command/new.py | 2 | ||||
-rw-r--r-- | libbe/command/set.py | 2 | ||||
-rw-r--r-- | libbe/command/target.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libbe/command/new.py b/libbe/command/new.py index 6e94e79..33ede50 100644 --- a/libbe/command/new.py +++ b/libbe/command/new.py @@ -118,7 +118,7 @@ class New (libbe.command.Command): storage = self._get_storage() bugdirs = self._get_bugdirs() if params['bugdir']: - bugdir = bugdirs[bugdir] + bugdir = bugdirs[params['bugdir']] elif len(bugdirs) == 1: bugdir = bugdirs.values()[0] else: diff --git a/libbe/command/set.py b/libbe/command/set.py index 9413a13..d552878 100644 --- a/libbe/command/set.py +++ b/libbe/command/set.py @@ -77,7 +77,7 @@ class Set (libbe.command.Command): def _run(self, **params): bugdirs = self._get_bugdirs() if params['bugdir']: - bugdir = bugdirs[bugdir] + bugdir = bugdirs[params['bugdir']] elif len(bugdirs) == 1: bugdir = bugdirs.values()[0] else: 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: |