From: Ondrej Lichtner <olichtne(a)redhat.com>
Iteration should be through all "_objects" instead of _machine._objects,
since no such attribute exists...
Signed-off-by: Ondrej Lichtner <olichtne(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 a77b8f6..ee36803 100644
--- a/lnst/Controller/Host.py
+++ b/lnst/Controller/Host.py
@@ -50,7 +50,7 @@ class Host(Namespace):
Does not include the init namespace (self)."""
ret = []
- for x in self._machine._objects.values():
+ for x in self._objects.values():
if isinstance(x, NetNamespace):
ret.append(x)
return ret
--
2.21.0