summaryrefslogtreecommitdiff
path: root/templates/torrc.exit_policy.erb
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2014-04-18 11:10:16 +0200
committermh <mh@immerda.ch>2014-04-18 11:10:16 +0200
commit5228a3d6bd2fce2e56bea538bd9c29641cf22474 (patch)
tree892e962bbd36915248545bf122810b4c2aa936fe /templates/torrc.exit_policy.erb
parent0a7fa2d5ec783a0c72dc2484c0e5958ec281db1f (diff)
address puppet 3.x deprecation warnings
Diffstat (limited to 'templates/torrc.exit_policy.erb')
-rw-r--r--templates/torrc.exit_policy.erb16
1 files changed, 8 insertions, 8 deletions
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 -%>