Skip to content
Snippets Groups Projects
Commit 88f06b82 authored by shinedday's avatar shinedday
Browse files

Remove some debug print

parent 171d9047
No related branches found
No related tags found
No related merge requests found
...@@ -22,9 +22,7 @@ class Amas(Schedulable, SSHClient): ...@@ -22,9 +22,7 @@ class Amas(Schedulable, SSHClient):
def __init__(self, broker_ip: str, clients: str) -> None: def __init__(self, broker_ip: str, clients: str) -> None:
Schedulable.__init__(self, broker_ip, "Amas") 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)] 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) SSHClient.__init__(self, true_client)
......
...@@ -123,7 +123,7 @@ class Ihm(MqttClient, SSHClient): ...@@ -123,7 +123,7 @@ class Ihm(MqttClient, SSHClient):
cmd="git pull" cmd="git pull"
), ),
Cmd( Cmd(
cmd="git checkout core_to_module" cmd="git checkout main"
), ),
Cmd( Cmd(
cmd="python3 -m pip install --force-reinstall dist/iotAmak-"+self.version+"-py3-none-any.whl" cmd="python3 -m pip install --force-reinstall dist/iotAmak-"+self.version+"-py3-none-any.whl"
......
...@@ -30,7 +30,6 @@ class SSHClient: ...@@ -30,7 +30,6 @@ class SSHClient:
try: try:
s = pxssh.pxssh() s = pxssh.pxssh()
dest = self.clients[client] dest = self.clients[client]
print(dest.hostname, dest.user, dest.password)
s.login(dest.hostname, dest.user, dest.password) s.login(dest.hostname, dest.user, dest.password)
for command in cmd: for command in cmd:
...@@ -51,8 +50,6 @@ class SSHClient: ...@@ -51,8 +50,6 @@ class SSHClient:
sftp = MySFTPClient.from_transport(transport) sftp = MySFTPClient.from_transport(transport)
sftp.mkdir("Desktop/mqtt_goyon/example/" + experiment_name, ignore_existing=True) 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( sftp.put_dir(
str(pathlib.Path().resolve()), str(pathlib.Path().resolve()),
"Desktop/mqtt_goyon/example/" + experiment_name "Desktop/mqtt_goyon/example/" + experiment_name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment