From: Ondrej Lichtner <olichtne(a)redhat.com>
The Parameters class serves as a container for instances of the various
Param objects. It should support deletions when required.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Common/Parameters.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lnst/Common/Parameters.py b/lnst/Common/Parameters.py
index 66380d2..7cfc451 100644
--- a/lnst/Common/Parameters.py
+++ b/lnst/Common/Parameters.py
@@ -132,6 +132,9 @@ class Parameters(object):
else:
self._attrs[name] = val
+ def __delattr__(self, name):
+ del self._attrs[name]
+
def __contains__(self, name):
return name in self._attrs
--
2.17.0