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:
parent
55eef69592
commit
4c32788d45
|
@ -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!')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue