Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit eaf068a

Browse files
author
Liam Bennett
committed
Merge pull request voxpupuli#123 from jyaworski/fix_acl_generation
Fix ACL format
2 parents 1a6f2c6 + 48d2fa0 commit eaf068a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/aclpolicy.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<%- @acl_policies.each_with_index do |policy, index| -%>
2-
description: <%= policy['description'] %>
2+
description: '<%= policy['description'] %>'
33
context:
44
<%= policy['context'].keys[0] %>: '<%= policy['context'].values[0] %>'
55
for:
@@ -9,9 +9,9 @@ for:
99
<%- type.each do |rule,action| -%>
1010
<%- if ['allow','deny'].include?(rule) -%>
1111
<%- if type.keys.include?('equals') -%>
12-
<%= rule %>: <%= action %>
12+
- <%= rule %>: <%= action %>
1313
<%- else -%>
14-
<%= rule %>: <%- if action.is_a? String -%>'<%= action %>'<%-else-%><%= action %><%-end%>
14+
- <%= rule %>: <%- if action.is_a? String -%>'<%= action %>'<%-else-%><%= action %><%-end%>
1515
<%- end -%>
1616
<%- elsif ['match','equals','contains'].include?(rule) -%>
1717
<%- action.each do |k,v| -%>

0 commit comments

Comments
 (0)