Merge pull request #155 from PierreR/patch-1
Use explicit undef in else case
This commit is contained in:
commit
0b540dbb86
1 changed files with 2 additions and 0 deletions
|
@ -88,6 +88,8 @@ define concat::fragment(
|
||||||
# if it looks line ensure => /target syntax was used, fish that out
|
# if it looks line ensure => /target syntax was used, fish that out
|
||||||
if ! ($_ensure in ['', 'present', 'absent', 'file' ]) {
|
if ! ($_ensure in ['', 'present', 'absent', 'file' ]) {
|
||||||
$ensure_target = $_ensure
|
$ensure_target = $_ensure
|
||||||
|
} else {
|
||||||
|
$ensure_target = undef
|
||||||
}
|
}
|
||||||
|
|
||||||
# the file type's semantics only allows one of: ensure => /target, content,
|
# the file type's semantics only allows one of: ensure => /target, content,
|
||||||
|
|
Loading…
Reference in a new issue