Confine to existence of /proc/modules, not kernel.
This commit is contained in:
parent
48281cb8de
commit
f2c6d3b194
@ -14,7 +14,7 @@ def get_modules
|
||||
end
|
||||
|
||||
Facter.add("kernel_modules") do
|
||||
confine :kernel => :linux
|
||||
confine :exists => "/proc/modules"
|
||||
setcode do
|
||||
modules = get_modules
|
||||
modules.to_a.join(",")
|
||||
|
Loading…
Reference in New Issue
Block a user