machine object is not initialized in the time we need the ids
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
---
lnst/Controller/Task.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Controller/Task.py b/lnst/Controller/Task.py
index d98e46a..c201bc0 100644
--- a/lnst/Controller/Task.py
+++ b/lnst/Controller/Task.py
@@ -238,7 +238,7 @@ class HostAPI(object):
return self._ifaces[if_id]
def get_id(self):
- return self._m.get_id()
+ return self._id
def config(self, option, value, persistent=False, netns=None):
"""
--
2.4.11