diff options
| author | Loic Guegan <loic.guegan@mailbox.org> | 2023-10-27 13:29:17 +0200 |
|---|---|---|
| committer | Loic Guegan <loic.guegan@mailbox.org> | 2023-10-27 13:29:17 +0200 |
| commit | 3479f91d13955975dfa19fcd247164a8ea133173 (patch) | |
| tree | e2f5bc04a8adbfe61a067c23c53a51049d2663b4 | |
| parent | 0e179bf6ce93006dc1d723602215dc7d8a1f56b0 (diff) | |
Minor changes
| -rw-r--r-- | clusterman/commands/node.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clusterman/commands/node.py b/clusterman/commands/node.py index 2f62685..d34363f 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)]) + subprocess.run(["ssh","-o", "StrictHostKeyChecking=no", "-i", CONF["ssh"]["key_path"],"{}@{}".format(user,ip), " ".join(command)], capture_output=True) else: - subprocess.run(["ssh","-o", "StrictHostKeyChecking=no", "{}@{}".format(user,ip), " ".join(command)]) + subprocess.run(["ssh","-o", "StrictHostKeyChecking=no", "{}@{}".format(user,ip), " ".join(command)],capture_output=True) |
