Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1880

SLES 15 fails acceptance tests due to not providing an os.release.minor value

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • FACT 3.11.5
    • None
    • None
    • Platform OS
    • Platform OS Kanban
    • Needs Assessment
    • Not Needed
    • Needs Assessment

    Description

      For SLES 15, we now parse /etc/os-release instead of Suse's old /etc/SuSE-release file to determine os facts. Since SLES 15 doesn't have any point-releases yet, the VERSION_ID value it's parsing from /etc/os-release is simply "15". This is resulting in there being no os.release.minor to return.

      The acceptance test os_processors_and_kernel.rb uses a regex that expects os.release.full to return something with a point release - so "15.0" would pass, but "15" would not.

      After some discussion in the Platform Core channel, the consensus was that os.release.minor should always return a value, given that there's likely code which relies upon it to perform things like version arithmetic or comparisons.

      Attachments

        Activity

          People

            scott.garman Scott Garman
            scott.garman Scott Garman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support