summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <loic.guegan@mailbox.org>2023-10-27 13:34:03 +0200
committerLoic Guegan <loic.guegan@mailbox.org>2023-10-27 13:34:03 +0200
commit22d11c304680ae04057ae34ae625f5e3113183ce (patch)
tree69333e281622e7de84d10d0664dd6cda4e3cb4d5
parent5424cb6cdc895a5644dd139f9daad4234efc8d60 (diff)
Minor changes
-rw-r--r--clusterman/commands/node.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/clusterman/commands/node.py b/clusterman/commands/node.py
index 725e539..ba26a08 100644
--- a/clusterman/commands/node.py
+++ b/clusterman/commands/node.py
@@ -94,7 +94,7 @@ def exec(command):
for ip in get_node_list():
print("----- Node {} -----".format(ip))
if len(key_path)>0:
- subprocess.check_output(["ssh","-o", "StrictHostKeyChecking=no", "-i", CONF["ssh"]["key_path"],"{}@{}".format(user,ip), " ".join(command)])
+ print(subprocess.check_output(["ssh","-o", "StrictHostKeyChecking=no", "-i", CONF["ssh"]["key_path"],"{}@{}".format(user,ip), " ".join(command)]))
else:
- subprocess.check_output(["ssh","-o", "StrictHostKeyChecking=no", "{}@{}".format(user,ip), " ".join(command)])
+ print(subprocess.check_output(["ssh","-o", "StrictHostKeyChecking=no", "{}@{}".format(user,ip), " ".join(command)]))