BIND 10 #1172: Stats show with multiple items crashes bindctl
BIND 10 Development
do-not-reply at isc.org
Thu Aug 11 14:52:35 UTC 2011
#1172: Stats show with multiple items crashes bindctl
---------------------------------+-----------------------------------------
Reporter: jreed | Owner:
Type: defect | Status: new
Priority: major | Milestone: New Tasks
Component: bind-ctl | Keywords:
Sensitive: 0 | Defect Severity: N/A
Sub-Project: Core | Feature Depending on Ticket:
Estimated Difficulty: 0 | Add Hours to Ticket: 0
Total Hours: 0 | Internal?: 0
---------------------------------+-----------------------------------------
Stats show accepts a single optional item.
If have two (regardless if they exist or not), bindctl will crash:
{{{
> Stats show a b
Traceback (most recent call last):
File "/usr/pkg/lib/python3.1/cmd.py", line 213, in onecmd
func = getattr(self, 'do_' + cmd)
AttributeError: 'BindCmdInterpreter' object has no attribute 'do_Stats'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/reed/opt/bind10/bin/bindctl", line 149, in <module>
tool.run()
File "/home/reed/opt/bind10/lib/python3.1/site-
packages/bindctl/bindcmd.py", line 128, in run
self.cmdloop()
File "/usr/pkg/lib/python3.1/cmd.py", line 139, in cmdloop
stop = self.onecmd(line)
File "/home/reed/opt/bind10/lib/python3.1/site-
packages/bindctl/bindcmd.py", line 452, in onecmd
Cmd.onecmd(self, line)
File "/usr/pkg/lib/python3.1/cmd.py", line 215, in onecmd
return self.default(line)
File "/home/reed/opt/bind10/lib/python3.1/site-
packages/bindctl/bindcmd.py", line 418, in default
self._parse_cmd(line)
File "/home/reed/opt/bind10/lib/python3.1/site-
packages/bindctl/bindcmd.py", line 555, in _parse_cmd
self._validate_cmd(cmd)
File "/home/reed/opt/bind10/lib/python3.1/site-
packages/bindctl/bindcmd.py", line 383, in _validate_cmd
param_spec = command_info.get_param_with_name(param_name).param_spec
File "/home/reed/opt/bind10/lib/python3.1/site-
packages/bindctl/moduleinfo.py", line 102, in get_param_with_name
return self.params[param_name]
KeyError: 1
}}}
--
Ticket URL: <http://bind10.isc.org/ticket/1172>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list