bugfix: abort registry_key resource if the os is not supported

This commit is contained in:
Christoph Hartmann 2015-12-11 14:54:36 +01:00
parent 90e1eb9e39
commit 6badbf4dc9

View file

@ -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?