Commit f3a53f55 authored by Jelte Jansen's avatar Jelte Jansen

didn't update one function


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@879 e5f2f494-b856-4b98-b285-d166d9295462
parent a532a314
......@@ -233,19 +233,19 @@ class UIModuleCCSession(MultiConfigData):
a DataTypeError if the value at the identifier is not a list,
or if the given value_str does not match the list_item_spec
"""
module_spec = find_spec(self.config.specification, identifier)
module_spec = self.find_spec_part(identifier)
if (type(module_spec) != dict or "list_item_spec" not in module_spec):
raise DataTypeError(identifier + " is not a list")
value = parse_value_str(value_str)
check_type(module_spec, [value])
cur_list = isc.cc.data.find_no_exc(self.config_changes, identifier)
if not cur_list:
cur_list = isc.cc.data.find_no_exc(self.config.data, identifier)
value = isc.cc.data.parse_value_str(value_str)
isc.config.config_data.check_type(module_spec, [value])
cur_list, status = self.get_value(identifier)
#if not cur_list:
# cur_list = isc.cc.data.find_no_exc(self.config.data, identifier)
if not cur_list:
cur_list = []
if value in cur_list:
cur_list.remove(value)
set(self.config_changes, identifier, cur_list)
self.set_value(identifier, cur_list)
def commit(self):
"""Commit all local changes, send them through b10-cmdctl to
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment