Skip to content

Commit

Permalink
Fix condition syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning- committed Jun 4, 2024
1 parent 95ad14d commit f5dea19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions manifests/fragment.pp
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
fail("${resource}['${title}']: Can't use 'source' and 'content' at the same time.")
}

if $tagging =~ Undef {
$safe_target_name = regsubst($target, '[\\\\/:~\n\s\+\*\(\)@]', '_', 'GM')
} else {
if $tagging {
$safe_target_name = $tagging
} else {
$safe_target_name = regsubst($target, '[\\\\/:~\n\s\+\*\(\)@]', '_', 'GM')
}

concat_fragment { $name:
Expand Down
6 changes: 3 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@
}
}

if $tagging =~ Undef {
$safe_names = $safe_name
} else {
if $tagging {
$safe_names = flatten($safe_name, $tagging)
} else {
$safe_names = $safe_name
}

if $ensure == 'present' {
Expand Down

0 comments on commit f5dea19

Please sign in to comment.