From 45a40819fe029a2645e9c06de49260e966b9c2bf Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 13 Dec 2012 11:04:45 -0500 Subject: [PATCH] libbe:command:util: fix bugdir access for complete_status and complete_severity Fix a bug introduced by: commit 4db1a045a0606bead191a563abc54dfa8352efe0 Author: W. Trevor King Date: Wed Aug 29 23:26:17 2012 -0400 Rewrite commands to use bugdirs instead of a single bugdir. Reported-by: James Spencer --- libbe/command/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbe/command/util.py b/libbe/command/util.py index 6f7b92e..9f76ad8 100644 --- a/libbe/command/util.py +++ b/libbe/command/util.py @@ -50,12 +50,12 @@ def complete_path(command, argument, fragment=None): return comp_path(fragment) def complete_status(command, argument, fragment=None): - bd = sorted(command._get_bugdirs().items())[1] + bd = sorted(command._get_bugdirs().items())[0] import libbe.bug return libbe.bug.status_values def complete_severity(command, argument, fragment=None): - bd = sorted(command._get_bugdirs().items())[1] + bd = sorted(command._get_bugdirs().items())[0] import libbe.bug return libbe.bug.severity_values -- 2.26.2