thiell/test — Issue #242: clubak: KeyError when using nodeset as input key
Author: thiell
Created: 2012-03-03 16:37:07+00:00
State: open
Labels: Scripts

Need to fix the following issue on {{{clubak}}} script for [milestone:1.6].

{{{
# echo "foo[1-2]: bar" | clubak -c
_scan_string foo[1-2]
Traceback (most recent call last):
File "/usr/bin/clubak", line 11, in
main()
File "lib/ClusterShell/CLI/Clubak.py", line 152, in main
clubak()
File "lib/ClusterShell/CLI/Clubak.py", line 147, in clubak
display(tree, disp, options.gather or disp.regroup, options.trace_mode)
File "lib/ClusterShell/CLI/Clubak.py", line 89, in display
disp.print_gather(nodeset, tree[nodeset[0]])
File "lib/ClusterShell/MsgTree.py", line 213, in __getitem__
return self._keys[key]
KeyError: 'foo1'
}}}