Details
-
New Feature
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
New Feature
-
For macOS versions 11 (Big Sur) and newer, the `os.macosx.version.minor` has been split into an additional `os.macosx.version.patch` fact. Contributed by community member ccaviness.
-
Needs Assessment
Description
Starting with macOS 11, Apple has more clearly started using major.minor.patch for OS versions.
FACT-2914 changes how os.macosx.version.major is reported, but instead essentially splitting on the first . and concatenating the second set, it would be more correct to split into 3 and report major/minor/patch.
Current:
❯ facter os.macosx.version
|
{
|
full => "11.2.2",
|
major => "11",
|
minor => "2.2",
|
}
|
Proposed:
❯ facter os.macosx.version
|
{
|
full => "11.2.2",
|
major => "11",
|
minor => "2",
|
patch => "2"
|
}
|
See Apple's API at https://developer.apple.com/documentation/foundation/nsoperatingsystemversion?language=objc