Use $::osfamily to be consistent with other code, and avoid failing

In rspec-puppet, setting facts isn't doing what I would like it to be doing, so
switching this from a compile error to an info
This commit is contained in:
R. Tyler Croy 2017-09-22 21:20:04 -07:00
parent 55eef69592
commit 4c32788d45
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ define bsd::network::interface (
}
}
case $::kernel {
case $::osfamily {
'OpenBSD': {
if $file_ensure == 'present' {
$content = get_openbsd_hostname_if_content($config)
@ -121,7 +121,7 @@ define bsd::network::interface (
}
}
default: {
fail('unhandled BSD, please help add support!')
info('Unhandled BSD (${osfamily}), please help add support!')
}
}
}