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

Facter 4 outputs hypervisors.zone.id fact differently on Solaris

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: FACT 4.1.0
    • Component/s: None
    • Labels:
    • Template:
    • Team:
      Night's Watch
    • Story Points:
      2
    • Sprint:
      NW - 2021-03-31, NW - 2021-04-14
    • Method Found:
      Manual Test
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      This fix changes the value of the `hypervisors.zone.id` fact in Facter 4 from String to Integer to align it with Facter 3.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Running puppet facts diff on Solaris 11 gives the following output:

              "hypervisors.zone.id": {
                "new_value": "0",
                "old_value": 0
              },
      

      Facter 4 reports a string, while Facter 3 reports an integer.

      Facter 4: https://github.com/puppetlabs/facter/blob/main/lib/facter/resolvers/solaris/zone.rb#L35
      Facter 3: https://github.com/puppetlabs/facter/blob/3.x/lib/src/facts/resolvers/zone_resolver.cc#L44

      Again, this can be an issue with how Facter represents integers, as Facter 3 saves a string value but outputs an integer.

        Attachments

          Activity

            People

            Assignee:
            luchian.nemes Luchian Nemes
            Reporter:
            luchian.nemes Luchian Nemes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support