Skip to content

Commit 73bd28b

Browse files
committed
Fix parsing config_options property
1 parent ad237c6 commit 73bd28b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

jobs/elasticsearch/templates/config/config.yml.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,6 @@ cloud:
6666
<% if_p('elasticsearch.cloud.aws.region') do |region| %>region: <%= region %><% end %>
6767
<% end %>
6868

69-
<% if_p('elasticsearch.config_options') do | v | %><%= v %><% end %>
69+
<% if_p('elasticsearch.config_options') do p("elasticsearch.config_options", {}).each do | k, v | %>
70+
<%= k %>: <%= v %><% end %>
71+
<% end %>

jobs/kibana/templates/config/kibana.conf.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,6 @@ elasticsearch.shardTimeout: <%= p('kibana.shard_timeout') %>
9090
# Configure development console
9191
console.enabled: <%= p("kibana.console_enabled") %>
9292

93-
<% if_p('kibana.config_options') do | v | %><%= v %><% end %>
93+
<% if_p('kibana.config_options') do p("kibana.config_options", {}).each do | k, v | %>
94+
<%= k %>: <%= v %><% end %>
95+
<% end %>

0 commit comments

Comments
 (0)