diff options
author | mh <mh@immerda.ch> | 2014-04-18 11:10:16 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2014-04-18 11:10:16 +0200 |
commit | 5228a3d6bd2fce2e56bea538bd9c29641cf22474 (patch) | |
tree | 892e962bbd36915248545bf122810b4c2aa936fe /templates/torrc.directory.erb | |
parent | 0a7fa2d5ec783a0c72dc2484c0e5958ec281db1f (diff) |
address puppet 3.x deprecation warnings
Diffstat (limited to 'templates/torrc.directory.erb')
-rw-r--r-- | templates/torrc.directory.erb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/torrc.directory.erb b/templates/torrc.directory.erb index c6b35b5..1af9f40 100644 --- a/templates/torrc.directory.erb +++ b/templates/torrc.directory.erb @@ -1,11 +1,11 @@ # directory listing -<%- if port != '0' then -%> -DirPort <%= port %> -<%- end -%> -<%- for listen_address in listen_addresses -%> +<% if port != '0' -%> +DirPort <%= @port %> +<% end -%> +<% listen_addresses.each do |listen_address| -%> DirListenAddress <%= listen_address %> -<%- end -%> -<%- if port_front_page != '' then -%> +<% end -%> +<% if @port_front_page != '' -%> DirPortFrontPage <%= port_front_page %> <%- end -%> |