Skip to content

Commit

Permalink
simplify cmd_list
Browse files Browse the repository at this point in the history
Skip-unit-tests: true
Skip-fault-injection-test: true
Allow-unstable-test: true

Required-githooks: true

Signed-off-by: Dalton Bohning <dalton.bohning@intel.com>
  • Loading branch information
daltonbohning committed Sep 17, 2024
1 parent 6ec0535 commit ea370f0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/tests/ftest/util/run_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,14 +366,11 @@ def get_clush_command(hosts, args=None, command="", command_env=None, command_su
"""
if fanout is None:
fanout = max(64, len(os.sched_getaffinity(0)))
cmd_list = ["clush"]
cmd_list = ["clush", "-f", str(fanout), "-w", str(hosts)]
if timeout is not None:
cmd_list.extend(["-u", str(timeout)])
if fanout is not None:
cmd_list.extend(["-f", str(fanout)])
if args:
cmd_list.append(args)
cmd_list.extend(["-w", str(hosts)])
# If ever needed, this is how to disable host key checking:
# cmd_list.extend(["-o", "-oStrictHostKeyChecking=no"])
cmd_list.append(command_as_user(command, "root" if command_sudo else "", command_env))
Expand Down

0 comments on commit ea370f0

Please sign in to comment.