Skip to content

Commit

Permalink
Fix improper parsing of pgsql_replica_method
Browse files Browse the repository at this point in the history
Directly parsing key and value from array of hashes won't work, we need
to first iterate through array and then split key and value in each
array member
  • Loading branch information
jsosic committed Jan 29, 2024
1 parent cacdff3 commit 0f08cc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/postgresql.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,15 @@ postgresql:
<% end -%>
<% unless @pgsql_replica_method.empty? -%>
replica_method:
<% @pgsql_replica_method.each do |name,settings| -%>
<% @pgsql_replica_method.each do |replica_method| -%>
<% replica_method.each do |name, settings| -%>
<%= name -%>:
<% settings.each do |setname,setval| -%>
<%= setname -%>: <%= setval %>
<% end -%>
<% end -%>
<% end -%>
<% end -%>

restapi:
listen: <%= @restapi_listen %>
Expand Down

0 comments on commit 0f08cc5

Please sign in to comment.