Module: check_mk
Branch: master
Commit: 5980d7c7b4ef96cf99507078c6621a244dab3bba
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5980d7c7b4ef96…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Feb 17 16:55:25 2012 +0100
gb choice supports tuple
---
gb | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/gb b/gb
index 3072aae..076fa51 100755
--- a/gb
+++ b/gb
@@ -375,6 +375,8 @@ def input_choice(what, choices):
ctc = {}
texts = []
for choice in choices:
+ if type(choice) == tuple:
+ choice = choice[0]
for c in choice:
if c not in ".-_/" and c not in ctc:
ctc[c] = choice