Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
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.