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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • FACT 4.1.0
    • None
    • Night's Watch
    • 2
    • NW - 2021-03-31, NW - 2021-04-14
    • Manual Test
    • Bug Fix
    • This fix changes the value of the `hypervisors.zone.id` fact in Facter 4 from String to Integer to align it with Facter 3.
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support