Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix misleading unsupported osfamily message #161

Merged
merged 1 commit into from
Apr 16, 2018
Merged

fix misleading unsupported osfamily message #161

merged 1 commit into from
Apr 16, 2018

Conversation

lesinigo
Copy link
Contributor

::filebeat::repo is using fail($filebeat::kernel_fail_message) inside a case $::osfamily { }, causing error messages like this even if it is actually running on a Linux system:

Error while evaluating a Function Call, Linux is not supported by filebeat. (file: /etc/puppetlabs/code/environments/production/modules/filebeat/manifests/repo.pp, line: 63, column: 7) on node foo.bar.baz

This PR introduces a new message to clarify that the incompatibility is actually with the osfamily and not with the kernel. The new output looks like this:

Error while evaluating a Function Call, Gentoo is not supported by filebeat. (file: /etc/puppetlabs/code/environments/production/modules/filebeat/manifests/repo.pp, line: 63, column: 7) on node foo.bar.baz

@pcfens pcfens merged commit a8a3d93 into pcfens:master Apr 16, 2018
@lesinigo lesinigo deleted the fix_unsupported_osfamily_err branch April 18, 2018 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants