Jira (FACT-2855) Cache with user query fails

3 views
Skip to first unread message

Bogdan Irimie (Jira)

unread,
Nov 9, 2020, 7:21:03 AM11/9/20
to puppe...@googlegroups.com
Bogdan Irimie created an issue
 
Facter / Bug FACT-2855
Cache with user query fails
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2020/11/09 4:20 AM
Priority: Normal Normal
Reporter: Bogdan Irimie

Given the fallowing config file

facts : {
  ttls : [
    { "custom_group": 30 days }
  ]
}
 
fact-groups : {
  custom_group : ["os.family" ,"os.name"],
}

with a custom group that contains two facts: `os.family` and `os.name`

if we first run facter with `os.name` (facter os.name -c <path_to_config>) the cached file will be:

{
  "os.name": "Darwin"
}

When we query for os.family (facter os.family -c <path_to_config>) we will get no results. This is due to the fact that the cache returns a resolved fact with nil value because it did not find `os.family` in the cache file.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Bogdan Irimie (Jira)

unread,
Nov 9, 2020, 7:21:03 AM11/9/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ready for triage
Reply all
Reply to author
Forward
0 new messages