The whole NetNamespace object should be passed to the call instead of
just the name.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
lnst/Controller/Host.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Controller/Host.py b/lnst/Controller/Host.py
index a50a7ad1..f6c76b51 100644
--- a/lnst/Controller/Host.py
+++ b/lnst/Controller/Host.py
@@ -71,7 +71,7 @@ class Host(Namespace):
def _custom_setattr(self, name, value):
if not super(Host, self)._custom_setattr(name, value):
if isinstance(value, NetNamespace):
- self._machine.add_netns(value.name)
+ self._machine.add_netns(value)
self._objects[name] = value
value._machine = self._machine
return True
--
2.26.3