Skip to content

Commit

Permalink
Merge pull request voxpupuli#1002 from jplindquist/fixindent
Browse files Browse the repository at this point in the history
Fix indentation for cluster_nodes
  • Loading branch information
wyardley authored May 29, 2024
2 parents 3bcdcb4 + a97d816 commit 1c30308
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions spec/classes/rabbitmq_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@
end

it 'for cluster_nodes' do
is_expected.to contain_file('rabbitmq.config').with('content' => %r{cluster_nodes.*\['rabbit@hare-1', 'rabbit@hare-2'\], ram})
is_expected.to contain_file('rabbitmq.config').with('content' => %r{^ {4}\{cluster_nodes, \{\['rabbit@hare-1', 'rabbit@hare-2'\], ram})
end
end

Expand All @@ -423,7 +423,7 @@
end

it 'for cluster_nodes' do
is_expected.to contain_file('rabbitmq.config').with('content' => %r{cluster_nodes.*\[\], ram})
is_expected.to contain_file('rabbitmq.config').with('content' => %r{^ {4}\{cluster_nodes, \{\[\], ram})
end
end
end
Expand Down
6 changes: 3 additions & 3 deletions templates/rabbitmq.config.epp
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
{auth_backends, [rabbit_auth_backend_internal, rabbit_auth_backend_ldap]},
<% } -%>
<% if $rabbitmq::config::config_cluster {-%>
<% if !$rabbitmq::config::cluster_nodes.empty {-%>
<%- if !$rabbitmq::config::cluster_nodes.empty {-%>
{cluster_nodes, {['rabbit@<%= $rabbitmq::config::cluster_nodes.join("', 'rabbit@") %>'], <%= $rabbitmq::config::cluster_node_type %>}},
<% } else {%>
<%- } else {-%>
{cluster_nodes, {[], <%= $rabbitmq::config::cluster_node_type %>}},
<% } %>
<%- } -%>
{cluster_partition_handling, <%= $rabbitmq::config::cluster_partition_handling %>},
<% } -%>
{tcp_listen_options, [
Expand Down

0 comments on commit 1c30308

Please sign in to comment.