mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
Merge pull request #1851 from username-is-already-taken2/gb/patch_1571
Amended the processes resource to skip on windows
This commit is contained in:
commit
b1419b84bf
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ module Inspec::Resources
|
||||||
@list = all_cmds.find_all do |hm|
|
@list = all_cmds.find_all do |hm|
|
||||||
hm[:command] =~ grep
|
hm[:command] =~ grep
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return skip_resource 'The `processes` resource is not supported on your OS yet.' if inspec.os.windows?
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
|
|
Loading…
Add table
Reference in a new issue