Skip to content

Commit bcfc31f

Browse files
committed
scylla-monitoring: add a missing "| default('')" in dc_to_node_list calculation
Signed-off-by: Vlad Zolotarov <[email protected]>
1 parent 9f88f9d commit bcfc31f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible-scylla-monitoring/tasks/common.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
# Resulting map -> {'-dc dc1': [node1, node2, node3], '-dc dc2': [node4, node5, node6]}
104104
- name: Create a map from dc to its list of nodes
105105
set_fact:
106-
dc_to_node_list: "{{ dc_to_node_list | default({}) | combine( {'-dc ' + hostvars[item]['dc'] + hostvars[item]['dc_suffix']: (dc_to_node_list | default({}))['-dc ' + hostvars[item]['dc'] + hostvars[item]['dc_suffix'] | default('')] | default([]) + [item]} ) }}"
106+
dc_to_node_list: "{{ dc_to_node_list | default({}) | combine( {'-dc ' + hostvars[item]['dc'] + hostvars[item]['dc_suffix'] | default(''): (dc_to_node_list | default({}))['-dc ' + hostvars[item]['dc'] + hostvars[item]['dc_suffix'] | default('')] | default([]) + [item]} ) }}"
107107
loop: "{{ groups['scylla'] }}"
108108

109109
# Resulting str -> "-dc dc1:node1,node2,node3 -dc dc2:node4,node5,node6"

0 commit comments

Comments
 (0)