Skip to content

Commit 253f497

Browse files
committed
Merge pull request #303 from bmjen/modules-1933
MODULES-1933: fixes backup passing in fragments without concat resource
2 parents ececd06 + 0459eba commit 253f497

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

manifests/fragment.pp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@
5757
if $backup {
5858
warning('The $backup parameter to concat::fragment is deprecated and has no effect')
5959
}
60+
6061
$my_backup = concat_getparam(Concat[$target], 'backup')
62+
$_backup = $my_backup ? {
63+
'' => undef,
64+
default => $my_backup
65+
}
66+
6167
if $ensure == undef {
6268
$my_ensure = concat_getparam(Concat[$target], 'ensure')
6369
} else {
@@ -119,7 +125,7 @@
119125
mode => $fragmode,
120126
source => $source,
121127
content => $content,
122-
backup => $my_backup,
128+
backup => $_backup,
123129
replace => true,
124130
alias => "concat_fragment_${name}",
125131
notify => Exec["concat_${target}"]

0 commit comments

Comments
 (0)