From 88f06b822d5fca88c7c9968574788114ac6919e5 Mon Sep 17 00:00:00 2001 From: shinedday <shinedday@gmail.com> Date: Wed, 11 May 2022 15:56:32 +0200 Subject: [PATCH] Remove some debug print --- iotAmak/amas.py | 2 -- iotAmak/ihm.py | 2 +- iotAmak/tool/ssh_client.py | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/iotAmak/amas.py b/iotAmak/amas.py index 573f369..304d487 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 0af4707..8a23611 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 2726205..149eaa9 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 -- GitLab