From 9997485b8a31abbe0cd1943d09995705c2c8146a Mon Sep 17 00:00:00 2001 From: varac Date: Mon, 26 Oct 2015 13:23:29 +0100 Subject: [bug] Use [val].flatten in config template otherwise, newer ruby versions would fail on this --- templates/unbound.conf.erb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'templates') diff --git a/templates/unbound.conf.erb b/templates/unbound.conf.erb index e082ad6..3712c65 100644 --- a/templates/unbound.conf.erb +++ b/templates/unbound.conf.erb @@ -1,8 +1,8 @@ -<% real_settings.sort.each do |section, settings| -%> -<%= "#{section}:" %> -<% settings.sort.each do |key, val| -%> -<% val.each do |val| -%> -<%= " #{key}: #{val}" %> -<% end -%> -<% end %> -<% end -%> +<% real_settings.sort.each do |section, settings| -%> +<%= "#{section}:" %> +<% settings.sort.each do |key, val| -%> +<% [val].flatten.each do |val| -%> +<%= " #{key}: #{val}" %> +<% end -%> +<% end %> +<% end -%> -- cgit v1.2.3