Skip to content

Commit

Permalink
Update policy template and unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Joris29 committed Nov 28, 2023
1 parent 1f2bbd4 commit e437d07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/classes/config/aclpolicyfile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
let(:params) { {} }

default_acl = <<~CONFIG.gsub(%r{[^\S\n]{10}}, '')
description: 'Admin, all access'
description: Admin, all access
context:
project: '.*'
for:
Expand All @@ -31,7 +31,7 @@
---
description: 'Admin, all access'
description: Admin, all access
context:
application: 'rundeck'
for:
Expand Down
2 changes: 1 addition & 1 deletion templates/aclpolicy.epp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%- $_acl_policies.each |$_index, $_policy| { -%>
description: <%= $_policy['description'] %>
context:
<%= $_policy['context'].keys[0] %>: "<%= $_policy['context'].values[0] %>"
<%= $_policy['context'].keys[0] %>: '<%= $_policy['context'].values[0] %>'
for:
<%- $_policy['for'].each |$_resource, $_kind| { -%>
<%= $_resource %>:
Expand Down

0 comments on commit e437d07

Please sign in to comment.