diff --git a/inventory/os.cf b/inventory/os.cf index e1f6537461..a56fe41d28 100644 --- a/inventory/os.cf +++ b/inventory/os.cf @@ -130,5 +130,14 @@ amzn_2:: string => "Amazon 2", meta => { "inventory", "attribute_name=OS" }; +any:: + "description" + string => "$(sys.os_release[PRETTY_NAME])", + if => and( + strcmp("$(sys.os_name_human)", "Unknown"), + isvariable("sys.os_release[PRETTY_NAME])"), + ), + meta => { "inventory", "attribute_name=OS", "derived-from=sys.os_release" }; + @endif }