Matěj Cepl
2013-10-31 10:57:36 UTC
The calling below seems like a typo to me. How can we index with
a variable which has not been initialized yet?
Best,
Mat?j Cepl
Signed-off-by: Mat?j Cepl <mcepl at redhat.com>
---
libbe/command/new.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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:
a variable which has not been initialized yet?
Best,
Mat?j Cepl
Signed-off-by: Mat?j Cepl <mcepl at redhat.com>
---
libbe/command/new.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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:
--
1.8.4.1.600.g3d092bf
1.8.4.1.600.g3d092bf