summaryrefslogtreecommitdiff
path: root/clusterman/commands
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-11-20 21:09:23 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2023-11-20 21:09:23 +0100
commitc217ff5e7b4d9be35e604d000506d2c60d52bd59 (patch)
tree376a0972729fd1ecebfd419edc93e5c99f9ed6d4 /clusterman/commands
parentc23a43fb31f902d8267b7ced1097c5619959bbc5 (diff)
Minor changes
Diffstat (limited to 'clusterman/commands')
-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 057c4d5..ca88043 100644
--- a/clusterman/commands/node.py
+++ b/clusterman/commands/node.py
@@ -60,9 +60,9 @@ def check(timeout):
else:
print("Error: Some of your nodes are not reachable")
-def exec(command, group=None):
+def exec(command, group=None, use_key=False):
nodes=utils.get_node_list() if group is None else utils.get_node_in_group(group)
for ip in nodes:
print("----- Node {} -----".format(ip))
- print(utils.ssh_exec(ip," ".join(command)))
+ print(utils.ssh_exec(ip," ".join(command),use_key))