File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 12
12
| -%>
13
13
# <%= $comment %>
14
14
Enabled: <%= $enabled %>
15
- Types: <% $types.each |String $type| { -%> <%= $type %> <% } %>
16
- URIs: <% $uris.each | String $uri | { -%> <%= $uri %> <% } %>
17
- Suites: <% $suites.each | String $suite | { -%> <%= $suite %> <% } %>
18
- Components: <% $components.each | String $component | { -%> <%= $component %> <% } %>
15
+ Types: <%= $types.join(' ') %>
16
+ URIs: <%= $uris.join(' ') %>
17
+ Suites: <%= $suites.join(' ') %>
18
+ Components: <%= $components.join(' ') %>
19
19
<% if $architectures { -%>
20
- Architectures:<% $architectures.each | String $arch | { %> <%= $arch %><% } %>
20
+ Architectures: <%= $architectures.join(' ') %>
21
21
<%- } -%>
22
22
<% if $allow_insecure { -%>
23
23
Allow-Insecure: <%= $allow_insecure %>
@@ -29,8 +29,5 @@ Trusted: <%= $repo_trusted %>
29
29
Check-Valid-Until: <%= $check_valid_until %>
30
30
<% } -%>
31
31
<% if $signed_by { -%>
32
- Signed-By: <% if type($signed_by) =~ Type[Array] { -%><%- $signed_by.each |String $keyring| { -%><%= $keyring %> <% } - %>
32
+ Signed-By: <%= [ $signed_by].flatten.join(' ') %>
33
33
<%- } -%>
34
- <%- elsif type($signed_by) =~ Type[String] { -%>
35
- <%= $signed_by -%>
36
- <%- }} %>
You can’t perform that action at this time.
0 commit comments