summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <loic.guegan@mailbox.org>2023-10-27 13:33:17 +0200
committerLoic Guegan <loic.guegan@mailbox.org>2023-10-27 13:33:17 +0200
commit5424cb6cdc895a5644dd139f9daad4234efc8d60 (patch)
tree8e1b2385c05ab68bca9249480734da987bfca7bf
parent3479f91d13955975dfa19fcd247164a8ea133173 (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 d34363f..725e539 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.run(["ssh","-o", "StrictHostKeyChecking=no", "-i", CONF["ssh"]["key_path"],"{}@{}".format(user,ip), " ".join(command)], capture_output=True)
+ subprocess.check_output(["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)],capture_output=True)
+ subprocess.check_output(["ssh","-o", "StrictHostKeyChecking=no", "{}@{}".format(user,ip), " ".join(command)])