We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mappings
1 parent 1deae36 commit 04dd721Copy full SHA for 04dd721
templates/conf.d/map.epp
@@ -17,6 +17,7 @@ map <%= $string %> $<%= $name %> {
17
<%- $include_files.each |$h| { -%>
18
include <%= $h %>;
19
<%- } -%>
20
+<%- unless $mappings.empty { -%>
21
22
<%-
23
$m = $mappings ? {
@@ -28,4 +29,5 @@ $field_width = $m.map |$x| { $x['key'].length }.max
28
29
<%- $m.each |$h| { -%>
30
<%= sprintf("%-*s %s", $field_width, $h['key'], $h['value']) %>;
31
32
+<%- } -%>
33
}
0 commit comments