Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

(FACT-2475) Fix os.release on Debian #410

Merged
merged 2 commits into from
Mar 26, 2020
Merged

(FACT-2475) Fix os.release on Debian #410

merged 2 commits into from
Mar 26, 2020

Conversation

oanatmaria
Copy link
Contributor

  • Read release fact from /etc/debian_version when os is Debian and from /etc/os-release otherwise instead of lsb_release
  • Fix os.release on Debian 10

florindragos
florindragos previously approved these changes Mar 26, 2020
@@ -39,6 +39,7 @@ def read_os_release_file(fact_name)

fill_fact_list(pairs)
process_name
find_debian_release if @fact_list[:name] =~ /Debian/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would create a new resolver for Debian. For example OsRelease has the fallowing alternatives RedHatRelease, SuseRelease. We should create something similar for Debian.

@BogdanIrimie BogdanIrimie merged commit c516f45 into master Mar 26, 2020
@oanatmaria oanatmaria added the bugfix Something isn't working label Mar 31, 2020
@oanatmaria oanatmaria deleted the FACT-2475 branch April 2, 2020 11:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bugfix Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants