summaryrefslogtreecommitdiff
path: root/clusterman/commands/node.py
diff options
context:
space:
mode:
Diffstat (limited to 'clusterman/commands/node.py')
-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))