Skip to content

Commit

Permalink
chore: collect image builder's osbuild.facts
Browse files Browse the repository at this point in the history
#3848 added an image builder fact to the
subscription_manage parser, but there are multiple facts present in
osbuild.facts. Just expose all of them.
  • Loading branch information
croissanne committed Jun 12, 2024
1 parent 69d1d78 commit 725f590
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions insights/specs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ class Specs(SpecSet):
ifcfg = RegistryPoint(multi_output=True)
ifcfg_static_route = RegistryPoint(multi_output=True)
imagemagick_policy = RegistryPoint(multi_output=True, filterable=True, no_obfuscate=['ip'])
image_builder_facts = RegistryPoint()
init_ora = RegistryPoint()
init_process_cgroup = RegistryPoint(no_obfuscate=['hostname', 'ip'])
initctl_lst = RegistryPoint(no_obfuscate=['hostname', 'ip'])
Expand Down
1 change: 1 addition & 0 deletions insights/specs/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ class DefaultSpecs(Specs):
ifcfg = glob_file("/etc/sysconfig/network-scripts/ifcfg-*")
ifcfg_static_route = glob_file("/etc/sysconfig/network-scripts/route-*")
imagemagick_policy = glob_file(["/etc/ImageMagick/policy.xml", "/usr/lib*/ImageMagick-6.5.4/config/policy.xml"])
image_builder_facts = simple_file("/etc/rhsm/facts/osbuild.facts")
init_process_cgroup = simple_file("/proc/1/cgroup")
initctl_lst = simple_command("/sbin/initctl --system list")
insights_client_conf = simple_file('/etc/insights-client/insights-client.conf')
Expand Down

0 comments on commit 725f590

Please sign in to comment.