Skip to content
Snippets Groups Projects
Verified Commit 92580e32 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

remove prepended dashes from ansible-param argument

parent 17f18d73
No related branches found
No related tags found
No related merge requests found
......@@ -139,8 +139,7 @@ def main(): # pylint: disable=too-many-statements,too-many-branches,too-many-lo
metavar=['PARAM[=VALUE]'],
action='append',
nargs=1,
help=('forward ansible parameters to the ansible-playbook call '
'(two dashes are prepended to PARAM)'))
help='forward ansible parameters to the ansible-playbook call')
test_parser = subparsers.add_parser(
'test',
......
......@@ -35,7 +35,7 @@ def run_ansible(clus, playbook, ansible_params=None, no_host_key_checking=False)
'--ansible-param several times to supply '
'more than 1 parameter')
param = param[0]
ansible_playbook_command.append(' --' + param)
ansible_playbook_command.append(param)
if no_host_key_checking:
ansible_playbook_command += [
'--ssh-extra-args',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment