From 6badbf4dc9302426bc1385ff7aa0391f47c23c33 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Fri, 11 Dec 2015 14:54:36 +0100 Subject: [PATCH] bugfix: abort registry_key resource if the os is not supported --- lib/resources/registry_key.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/resources/registry_key.rb b/lib/resources/registry_key.rb index 03568ae38..e3b84283b 100644 --- a/lib/resources/registry_key.rb +++ b/lib/resources/registry_key.rb @@ -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?