diff options
| author | Loic Guegan <loic.guegan@mailbox.org> | 2023-10-27 13:34:03 +0200 |
|---|---|---|
| committer | Loic Guegan <loic.guegan@mailbox.org> | 2023-10-27 13:34:03 +0200 |
| commit | 22d11c304680ae04057ae34ae625f5e3113183ce (patch) | |
| tree | 69333e281622e7de84d10d0664dd6cda4e3cb4d5 /clusterman | |
| parent | 5424cb6cdc895a5644dd139f9daad4234efc8d60 (diff) | |
Minor changes
Diffstat (limited to 'clusterman')
| -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 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)])) |
