We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ececd06 + 0459eba commit 253f497Copy full SHA for 253f497
1 file changed
manifests/fragment.pp
@@ -57,7 +57,13 @@
57
if $backup {
58
warning('The $backup parameter to concat::fragment is deprecated and has no effect')
59
}
60
+
61
$my_backup = concat_getparam(Concat[$target], 'backup')
62
+ $_backup = $my_backup ? {
63
+ '' => undef,
64
+ default => $my_backup
65
+ }
66
67
if $ensure == undef {
68
$my_ensure = concat_getparam(Concat[$target], 'ensure')
69
} else {
@@ -119,7 +125,7 @@
119
125
mode => $fragmode,
120
126
source => $source,
121
127
content => $content,
122
- backup => $my_backup,
128
+ backup => $_backup,
123
129
replace => true,
124
130
alias => "concat_fragment_${name}",
131
notify => Exec["concat_${target}"]
0 commit comments