Skip to content

Commit

Permalink
Fix ACL format
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Yaworski committed Aug 12, 2015
1 parent 1a6f2c6 commit 48d2fa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/aclpolicy.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%- @acl_policies.each_with_index do |policy, index| -%>
description: <%= policy['description'] %>
description: '<%= policy['description'] %>'
context:
<%= policy['context'].keys[0] %>: '<%= policy['context'].values[0] %>'
for:
Expand All @@ -9,9 +9,9 @@ for:
<%- type.each do |rule,action| -%>
<%- if ['allow','deny'].include?(rule) -%>
<%- if type.keys.include?('equals') -%>
<%= rule %>: <%= action %>
- <%= rule %>: <%= action %>
<%- else -%>
<%= rule %>: <%- if action.is_a? String -%>'<%= action %>'<%-else-%><%= action %><%-end%>
- <%= rule %>: <%- if action.is_a? String -%>'<%= action %>'<%-else-%><%= action %><%-end%>
<%- end -%>
<%- elsif ['match','equals','contains'].include?(rule) -%>
<%- action.each do |k,v| -%>
Expand Down

0 comments on commit 48d2fa0

Please sign in to comment.