Skip to content

Commit

Permalink
scylla-manager: remove usage of no longer existing parameter of 'scto…
Browse files Browse the repository at this point in the history
…ol cluster add'

'--without_token' option is not supported by 'sctool cluster add' at least since SM 2.2.
Removing it's usage and making --auth-token call conditional instead.

Signed-off-by: Vlad Zolotarov <vladz@scylladb.com>
  • Loading branch information
vladzcloudius committed Feb 26, 2024
1 parent f09fb57 commit af92c08
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ansible-scylla-manager/tasks/add-clusters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
shell: |
sctool cluster add \
--host {{ item.host }} \
--auth-token "{{ auth_token }}" \
--name {{ item.cluster_name }} \
{% if item.without_token is defined and item.without_token|bool == true %}
--without_token \
{% if not item.without_token is defined or item.without_token|bool == false %}
--auth-token "{{ auth_token }}" \
{% endif %}
{% if item.username is defined and item.password is defined %}
--username {{ item.username }} \
Expand Down

0 comments on commit af92c08

Please sign in to comment.