mirror of
https://github.com/inspec/inspec
synced 2024-11-14 17:07:09 +00:00
improvement: add complete linux support for kernel_module
This commit is contained in:
parent
1d61c0e042
commit
66a2be7f33
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class KernelModule < Vulcano.resource(1)
|
|||
@module = modulename
|
||||
|
||||
# this resource is only supported on Linux
|
||||
return skip_resource 'The `kernel_module` resource is not supported on your OS.' if !%w{ubuntu debian redhat fedora arch}.include? vulcano.os[:family]
|
||||
return skip_resource 'The `kernel_parameter` resource is not supported on your OS.' if !vulcano.os.linux?
|
||||
end
|
||||
|
||||
def loaded?
|
||||
|
|
Loading…
Reference in a new issue