diff options
author | Hunter Haugen <h.haugen@gmail.com> | 2012-11-21 16:27:27 -0800 |
---|---|---|
committer | Hunter Haugen <h.haugen@gmail.com> | 2012-11-21 16:27:27 -0800 |
commit | 651bc406c9951f4de531340605b42cf8db53113d (patch) | |
tree | 9d5721aa0fd754b7d271f3da9f71deb8a28c2795 | |
parent | 24873ebc7cd7c997077e0c69e526c012c92c30ba (diff) | |
parent | f0b700739632dfb3071f8ad03faaa5b755674a19 (diff) |
Merge pull request #20 from Mirantis/cleanup-haproxy-listen-block
Slight simplification in haproxy_listen_block.erb
-rw-r--r-- | templates/haproxy_listen_block.erb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/templates/haproxy_listen_block.erb b/templates/haproxy_listen_block.erb index 8b3767f..ede7db4 100644 --- a/templates/haproxy_listen_block.erb +++ b/templates/haproxy_listen_block.erb @@ -3,11 +3,7 @@ listen <%= name %> bind <%= virtual_ip %>:<%= port %> <% end end %> <% options.sort.each do |key, val| -%> -<% if val.is_a?(Array) -%> -<% val.each do |item| -%> +<% Array(val).each do |item| -%> <%= key %> <%= item %> <% end -%> -<% else -%> - <%= key %> <%= val %> -<% end -%> <% end -%> |