diff --git a/iotAmak/amas.py b/iotAmak/amas.py index 573f36916cf7e6c5f760ce817f0c64b412857783..304d48756a121b0a8815f4a56b1fede6be6a0790 100644 --- a/iotAmak/amas.py +++ b/iotAmak/amas.py @@ -22,9 +22,7 @@ class Amas(Schedulable, SSHClient): def __init__(self, broker_ip: str, clients: str) -> None: Schedulable.__init__(self, broker_ip, "Amas") - print(clients) true_client = [RemoteClient(i.get("hostname"), i.get("user"), i.get("password")) for i in literal_eval(clients)] - print(true_client) SSHClient.__init__(self, true_client) diff --git a/iotAmak/ihm.py b/iotAmak/ihm.py index 0af4707916d257e1b0cfe2968c7f440b9e2cd644..8a2361132571d205bae7bd2ef402fc7cc828f5ab 100644 --- a/iotAmak/ihm.py +++ b/iotAmak/ihm.py @@ -123,7 +123,7 @@ class Ihm(MqttClient, SSHClient): cmd="git pull" ), Cmd( - cmd="git checkout core_to_module" + cmd="git checkout main" ), Cmd( cmd="python3 -m pip install --force-reinstall dist/iotAmak-"+self.version+"-py3-none-any.whl" diff --git a/iotAmak/tool/ssh_client.py b/iotAmak/tool/ssh_client.py index 27262054c409f6b42d5a48350dcc8f3cec5384b3..149eaa91675de4a9582c8fc83da3712464bfb360 100644 --- a/iotAmak/tool/ssh_client.py +++ b/iotAmak/tool/ssh_client.py @@ -30,7 +30,6 @@ class SSHClient: try: s = pxssh.pxssh() dest = self.clients[client] - print(dest.hostname, dest.user, dest.password) s.login(dest.hostname, dest.user, dest.password) for command in cmd: @@ -51,8 +50,6 @@ class SSHClient: sftp = MySFTPClient.from_transport(transport) sftp.mkdir("Desktop/mqtt_goyon/example/" + experiment_name, ignore_existing=True) - print(str(pathlib.Path().resolve()), "Desktop/mqtt_goyon/example/" + experiment_name) - sftp.put_dir( str(pathlib.Path().resolve()), "Desktop/mqtt_goyon/example/" + experiment_name