Skip to content

Commit

Permalink
Fix legacy fact usage
Browse files Browse the repository at this point in the history
This allows to test control-repos catalogs with onceover using factsets
that do not include legacy facts.
  • Loading branch information
smortex authored and lvicainne committed Jul 28, 2022
1 parent b5a3ae8 commit 6074332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
$service_enable = true
$service_ensure = 'running'

case $::osfamily {
case fact('os.family') {
'Debian': {
$user = 'opendkim'
$group = 'opendkim'
Expand All @@ -59,7 +59,7 @@
$configdir = '/etc/opendkim'
}
default: {
fail("${::operatingsystem} is not supported by this module.")
fail("${fact('os.family')} is not supported by this module.")
}
}
}

0 comments on commit 6074332

Please sign in to comment.