Revision fc082e8d
Added by Dominik Matoulek almost 3 years ago
app/services/fact_importer.rb | ||
---|---|---|
Setting.convert_array_to_regexp(
|
||
Setting[:excluded_facts],
|
||
{
|
||
:prefix => '(\A|.*::|.*_)',
|
||
:prefix => '(\A|.*::|\A(facter_)?(mtu|macaddress|(ipaddress|network|netmask)6?)_)',
|
||
:suffix => '(\Z|::.*)',
|
||
}
|
||
)
|
Also available in: Unified diff
Fixes #29681 - Fixing bad regex for excluding facts
Foreman uses facts from many tools like Ansible or Puppet to gather
facts about hosts. These facts are also full of facts that foreman don't
care about. That's why Excluded facts setting exist. It has some bugs
that makes fact definiton for excluding hard.