diff options
author | varac <varacanero@zeromail.org> | 2015-10-26 13:23:29 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2015-10-26 13:23:29 +0100 |
commit | 9997485b8a31abbe0cd1943d09995705c2c8146a (patch) | |
tree | d4db85a3c554b1d9160d022a1667581e1c10a59b | |
parent | 00646b0ffc71a86981b05f983c86ace0979d1b6f (diff) |
[bug] Use [val].flatten in config template
otherwise, newer ruby versions would fail on this
-rw-r--r-- | templates/unbound.conf.erb | 16 |
1 files changed, 8 insertions, 8 deletions
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 -%> |