Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
e05046fb
Commit
e05046fb
authored
Aug 13, 2012
by
Jelte Jansen
Browse files
[2184] removed dead code and fixed bad error
parent
a5813028
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/python/isc/config/ccsession.py
View file @
e05046fb
...
...
@@ -594,7 +594,6 @@ class UIModuleCCSession(MultiConfigData):
item_name
=
None
item_value
=
None
if
value_str
is
not
None
:
#item_name = isc.cc.data.parse_value_str(value_str)
item_name
=
value_str
if
set_value_str
is
not
None
:
item_value
=
isc
.
cc
.
data
.
parse_value_str
(
set_value_str
)
...
...
@@ -669,7 +668,7 @@ class UIModuleCCSession(MultiConfigData):
(
type_any
and
type
(
cur_value
)
==
dict
):
self
.
_remove_value_from_named_set
(
identifier
,
value_str
)
else
:
raise
isc
.
cc
.
data
.
DataNotFoundError
(
str
(
identifier
)
+
" is not a list or a named_set
"
+
str
(
module_spec
)
+
" and type "
+
str
(
type
(
cur_value
))
)
raise
isc
.
cc
.
data
.
DataNotFoundError
(
str
(
identifier
)
+
" is not a list or a named_set
"
)
...
...
src/lib/python/isc/config/config_data.py
View file @
e05046fb
...
...
@@ -657,8 +657,7 @@ class MultiConfigData:
all
)
else
:
value
,
status
=
self
.
get_value
(
identifier
)
if
status
==
self
.
NONE
and
not
spec_part
[
'item_optional'
]:
# and\
#not ('item_default' in spec_part):
if
status
==
self
.
NONE
and
not
spec_part
[
'item_optional'
]:
raise
isc
.
cc
.
data
.
DataNotFoundError
(
identifier
+
" not found"
)
entry
=
_create_value_map_entry
(
identifier
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment