Jira (FACT-2950) Structured core facts cannot be overriden by a custom fact

3 views
Skip to first unread message

Bogdan Irimie (Jira)

unread,
Mar 1, 2021, 2:24:02 AM3/1/21
to puppe...@googlegroups.com
Bogdan Irimie created an issue
 
Facter / Bug FACT-2950
Structured core facts cannot be overriden by a custom fact
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2021/02/28 11:23 PM
Priority: Normal Normal
Reporter: Bogdan Irimie
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Bogdan Irimie (Jira)

unread,
Mar 1, 2021, 2:28:03 AM3/1/21
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Facter represents structured facts as a list of path e.g.
{code}os => {
  architecture => "x86_64",
  family => "Darwin",
  ...
  release => {
    full => "20.3.0",
    major => "20",
    minor => "3"
  }
}
{code}
will be represented as
{code}os.architecture
os.family
os.release.full
os.release.major
os.release.minor
{code}
"os" is never represented as a fact name.

When we create a custom fact "os", we don't override the list of facts, we just create a new fact to that list
{code}os
os.architecture
os.family
os.release.full
os.release.major
os.release.minor
{code}
Reply all
Reply to author
Forward
0 new messages