Skip to content

Commit

Permalink
MODULES-1933: fixes backup passing in fragments without concat resource
Browse files Browse the repository at this point in the history
  • Loading branch information
bmjen committed Apr 23, 2015
1 parent ececd06 commit 0459eba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion manifests/fragment.pp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@
if $backup {
warning('The $backup parameter to concat::fragment is deprecated and has no effect')
}

$my_backup = concat_getparam(Concat[$target], 'backup')
$_backup = $my_backup ? {
'' => undef,
default => $my_backup
}

if $ensure == undef {
$my_ensure = concat_getparam(Concat[$target], 'ensure')
} else {
Expand Down Expand Up @@ -119,7 +125,7 @@
mode => $fragmode,
source => $source,
content => $content,
backup => $my_backup,
backup => $_backup,
replace => true,
alias => "concat_fragment_${name}",
notify => Exec["concat_${target}"]
Expand Down

0 comments on commit 0459eba

Please sign in to comment.