Skip to content

Commit 09644c5

Browse files
committed
(maint) Corrects legacy macOS facts
Prior to this commit, the legacy facts plugin misidentified the correlation between legacy macOS (formerly OSX) facts and the modern structured facts. This commit corrects the modern macOS facts.
1 parent eb89222 commit 09644c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/puppet-lint/plugins/legacy_facts/legacy_facts.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@
6262
'lsbminordistrelease' => "facts['os']['distro']['release']['minor']",
6363
'lsbrelease' => "facts['os']['distro']['release']['specification']",
6464
'macaddress' => "facts['networking']['mac']",
65-
'macosx_buildversion' => "facts['os']['build']",
66-
'macosx_productname' => "facts['os']['product']",
67-
'macosx_productversion' => "facts['os']['version']['full']",
68-
'macosx_productversion_major' => "facts['os']['version']['major']",
69-
'macosx_productversion_minor' => "facts['os']['version']['minor']",
65+
'macosx_buildversion' => "facts['os']['macosx']['build']",
66+
'macosx_productname' => "facts['os']['macosx']['product']",
67+
'macosx_productversion' => "facts['os']['macosx']['version']['full']",
68+
'macosx_productversion_major' => "facts['os']['macosx']['version']['major']",
69+
'macosx_productversion_minor' => "facts['os']['macosx']['version']['minor']",
7070
'manufacturer' => "facts['dmi']['manufacturer']",
7171
'memoryfree' => "facts['memory']['system']['available']",
7272
'memorysize' => "facts['memory']['system']['total']",

0 commit comments

Comments
 (0)