Commit a63e3681 authored by Maverick Chardet's avatar Maverick Chardet
Browse files

Added print debug

parent c20fa87f
......@@ -67,6 +67,8 @@ class RemoteHost:
def __init__(self, remote_address, remote_user='root', backend=Backend.EXECO):
self._remote_address = remote_address
self._remote_user = remote_user
self._backend = backend
if backend is RemoteHost.Backend.EXECO:
self._backend = self._ExecoBackend(remote_address, remote_user)
......@@ -78,6 +80,10 @@ class RemoteHost:
def __exit__(self, exc_type, exc_val, exc_tb):
def __str__(self):
return "RemoteHost(address=%s, user=%s, backend=%s)" % (self._remote_address, self._remote_user,
def run(self, command, **kwargs):, **kwargs)
......@@ -25,6 +25,7 @@ class SSHCaller(Component):
def call_function(self):
self.print_color("Waiting for %f seconds" % self._sleep_time)
self.print_color(str(self._remote_host))"sleep %f" % self._sleep_time)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment