Skip to content

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

Merged
oanatmaria merged 1 commit intopuppetlabs:4.xfrom
BogdanIrimie:FACT-2734
Jul 30, 2020
Merged

(FACT-2734) Return nil codename if we cannot determine it from /etc/redhat_release#2003
oanatmaria merged 1 commit intopuppetlabs:4.xfrom
BogdanIrimie:FACT-2734

Conversation

@BogdanIrimie
Copy link
Copy Markdown
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