From 5228a3d6bd2fce2e56bea538bd9c29641cf22474 Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 18 Apr 2014 11:10:16 +0200 Subject: address puppet 3.x deprecation warnings --- templates/torrc.exit_policy.erb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'templates/torrc.exit_policy.erb') diff --git a/templates/torrc.exit_policy.erb b/templates/torrc.exit_policy.erb index 65f9d09..a30d43b 100644 --- a/templates/torrc.exit_policy.erb +++ b/templates/torrc.exit_policy.erb @@ -1,11 +1,11 @@ -# exit policies: <%= name %> -<%- if reject_private != '1' then -%> -ExitPolicyRejectPrivate <%= reject_private %> -<%- end -%> -<%- for policy in accept -%> +# exit policies: <%= @name %> +<% if @reject_private != '1' -%> +ExitPolicyRejectPrivate <%= @reject_private %> +<% end -%> +<% @accept.each do |policy| -%> ExitPolicy accept <%= policy %> -<%- end -%> -<%- for policy in reject -%> +<% end -%> +<% @reject.each do |policy| -%> ExitPolicy reject <%= policy %> -<%- end -%> +<% end -%> -- cgit v1.2.3