Skip to content

Commit

Permalink
Merge pull request #123 from jyaworski/fix_acl_generation
Browse files Browse the repository at this point in the history
Fix ACL format
  • Loading branch information
Liam Bennett committed Aug 12, 2015
2 parents 1a6f2c6 + 48d2fa0 commit eaf068a
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 eaf068a

Please sign in to comment.