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

(FACT-2734) Return nil codename if we cannot determine it from /etc/redhat_release #2003

Merged
merged 1 commit into from
Jul 30, 2020

Conversation

BogdanIrimie
Copy link
Contributor

@BogdanIrimie BogdanIrimie commented Jul 30, 2020

The old implementation assumed that /etc/redhat-release always contains codename, but there might be cases when it does not. When this happened, and we were running on an os that did not have /etc/os-release Facter, would try /etc/redhat-release and would fail to start.

The fix returns nil when there is no codename in /etc/redhat-relase. This allows Facter to start even when there is no codename.

@BogdanIrimie BogdanIrimie requested review from a team July 30, 2020 08:56
@BogdanIrimie BogdanIrimie added the bug Something isn't working label Jul 30, 2020
@oanatmaria oanatmaria merged commit 1bf4470 into puppetlabs:4.x Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants