mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
bugfix: abort registry_key resource if the os is not supported
This commit is contained in:
parent
90e1eb9e39
commit
6badbf4dc9
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ class RegistryKey < Inspec.resource(1)
|
|||
reg_key ||= name
|
||||
@name = name
|
||||
@reg_key = reg_key
|
||||
return skip_resource 'The `registry_key` resource is not supported on your OS yet.'
|
||||
end
|
||||
|
||||
def exists?
|
||||
|
|
Loading…
Reference in a new issue