Skip to content

Commit 195c28e

Browse files
authored
Ensure a default value is applied to run__dw_vw_configs. (#136)
Ensure run__dw_vw_configs is set even if run__dw_dbc_configs is unset to avoid failures later at the runtime deployment. Fixes #135. Signed-off-by: Andre Araujo <araujo@cloudera.com>
1 parent 925c4b3 commit 195c28e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

roles/runtime/tasks/initialize_base.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,13 @@
204204
loop_var: __dw_config
205205
index_var: __dw_config_index
206206

207+
- name: Ensure runtime configs is initialized
208+
ansible.builtin.set_fact:
209+
run__dw_vw_configs: "{{ run__dw_vw_configs | default([]) }}"
210+
207211
- name: Construct CDP DW Virtual Warehouse configurations
208212
ansible.builtin.set_fact:
209-
run__dw_vw_configs: "{{ run__dw_vw_configs | default([]) | union([config]) }}"
213+
run__dw_vw_configs: "{{ run__dw_vw_configs | union([config]) }}"
210214
vars:
211215
config:
212216
dbc_name: "{{ __dw_config.0.name }}"

0 commit comments

Comments
 (0)