Found with pylint. Fixed typo in raise command, raise should use MachineError and not
Machine.
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
---
lnst/Controller/Machine.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Controller/Machine.py b/lnst/Controller/Machine.py
index 783d357..8da1a10 100644
--- a/lnst/Controller/Machine.py
+++ b/lnst/Controller/Machine.py
@@ -184,7 +184,7 @@ class Machine(object):
if hello != "hello":
msg = "Unable to establish RPC connection " \
"to machine %s, handshake failed!" % hostname
- raise Machine(msg)
+ raise MachineError(msg)
for iface in self._interfaces:
iface.initialize()
--
2.1.0