BIND 10 #343: Error message for failing to remove config data is hard to understand
BIND 10 Development
do-not-reply at isc.org
Fri Sep 17 06:34:07 UTC 2010
#343: Error message for failing to remove config data is hard to understand
---------------------------+------------------------------------------------
Reporter: zhanglikun | Owner: jelte
Type: defect | Status: new
Priority: major | Milestone:
Component: Unclassified | Keywords:
Sensitive: 0 | Estimatedhours: 0
Hours: 0 | Billable: 1
Totalhours: 0 | Internal: 0
---------------------------+------------------------------------------------
Currently, when user try to remove one config data, if the type of config
data is string. the error message reported by bindctl is hard to
understand.
see
bindctl
-> config remove Xfrin/master_addr '1.1.1.1'
The error message is "Error: Xfrin/master_addr not found", the message
should be changed to be more readable.
the following command
->config remove Xfrin/master_addr
the error message is "string index out of range "
I just feel confused about the following code in line 570-573, file
bindcmd.py.
{{{
elif cmd.command == "add":
self.config_data.add_value(identifier, cmd.params['value'])
elif cmd.command == "remove":
self.config_data.remove_value(identifier, cmd.params['value'])
}}}
Where the value cmd.params['value'] is set?
--
Ticket URL: <http://bind10.isc.org/ticket/343>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list