summaryrefslogtreecommitdiff
path: root/clusterman
diff options
context:
space:
mode:
authorLoic Guegan <loic.guegan@mailbox.org>2023-10-27 13:24:14 +0200
committerLoic Guegan <loic.guegan@mailbox.org>2023-10-27 13:24:14 +0200
commit0e179bf6ce93006dc1d723602215dc7d8a1f56b0 (patch)
tree407e8d499f9e76b37201dfa81d98e89a0a512a76 /clusterman
parenta65e22fc31d123f3fc195139bfc79d4edd488400 (diff)
Minor changes
Diffstat (limited to 'clusterman')
-rw-r--r--clusterman/commands/node.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/clusterman/commands/node.py b/clusterman/commands/node.py
index 1b800d2..2f62685 100644
--- a/clusterman/commands/node.py
+++ b/clusterman/commands/node.py
@@ -94,8 +94,7 @@ def exec(command):
for ip in get_node_list():
print("----- Node {} -----".format(ip))
if len(key_path)>0:
- # subprocess.run(["ssh","-o", "StrictHostKeyChecking=no", "-i", CONF["ssh_key_path"],"{}@{}".format(user,ip), " ".join(command)])
- print(["ssh","-o", "StrictHostKeyChecking=no", "-i", CONF["ssh_key_path"],"{}@{}".format(user,ip), " ".join(command)])
+ subprocess.run(["ssh","-o", "StrictHostKeyChecking=no", "-i", CONF["ssh"]["key_path"],"{}@{}".format(user,ip), " ".join(command)])
else:
-# subprocess.run(["ssh","-o", "StrictHostKeyChecking=no", "{}@{}".format(user,ip), " ".join(command)])
- print(["ssh","-o", "StrictHostKeyChecking=no", "{}@{}".format(user,ip), " ".join(command)])
+ subprocess.run(["ssh","-o", "StrictHostKeyChecking=no", "{}@{}".format(user,ip), " ".join(command)])
+