Skip to content

Commit

Permalink
fixup OS for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
craigcomstock committed Feb 27, 2024
1 parent fa2ae15 commit 36b062a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions overlay/inventory/os.cf
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,9 @@ any::
"description" string => "$(sys.os_release[PRETTY_NAME])",
if => isvariable("sys.os_release[PRETTY_NAME]"),
meta => { "inventory", "attribute_name=OS", "derived-from=sys.os_release" };
darwin::
"product_name" string => execresult("/usr/bin/sw_vers --productName", useshell);
"product_version" string => execresult("/usr/bin/sw_vers --productVersion", useshell);
"description" string => "$(product_name) $(product_version)",
meta => { "inventory", "attribute_name=OS", "derived-from=sw_vers command" };
}

0 comments on commit 36b062a

Please sign in to comment.