mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 22:15:23 +00:00
[1715] Implement the missing unset method
The underlying implementation is already there, it's just somebody forgot to wrap it in this another layer of indirection class.
This commit is contained in:
@@ -672,6 +672,16 @@ class MultiConfigData:
|
|||||||
self._append_value_item(result, spec_part, identifier, all, True)
|
self._append_value_item(result, spec_part, identifier, all, True)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
def unset(self, identifier):
|
||||||
|
"""
|
||||||
|
Reset the value to default.
|
||||||
|
"""
|
||||||
|
spec_part = self.find_spec_part(identifier)
|
||||||
|
if spec_part is not None:
|
||||||
|
isc.cc.data.unset(self._local_changes, identifier)
|
||||||
|
else:
|
||||||
|
raise isc.cc.data.DataNotFoundError(identifier + "not found")
|
||||||
|
|
||||||
def set_value(self, identifier, value):
|
def set_value(self, identifier, value):
|
||||||
"""Set the local value at the given identifier to value. If
|
"""Set the local value at the given identifier to value. If
|
||||||
there is a specification for the given identifier, the type
|
there is a specification for the given identifier, the type
|
||||||
|
Reference in New Issue
Block a user