diff options
author | Tim Smith <tsmith@chef.io> | 2018-08-31 10:43:35 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-08-31 10:43:35 -0700 |
commit | 74d6820f4532b4a75f205f5122de4f70b0de1a41 (patch) | |
tree | a6fd9d21421c23f324630fe166abcb9f4899bf42 | |
parent | 783d39e049f863e620b9518ca1ddfebdae74831b (diff) | |
download | chef-74d6820f4532b4a75f205f5122de4f70b0de1a41.tar.gz |
Avoid declare resource where it's not neededdeclare
This is a custom resource. Removing this just increases readability for anyone used to writing resources in cookbooks.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/windows_auto_run.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/windows_auto_run.rb b/lib/chef/resource/windows_auto_run.rb index e483462670..af692493b4 100644 --- a/lib/chef/resource/windows_auto_run.rb +++ b/lib/chef/resource/windows_auto_run.rb @@ -51,7 +51,7 @@ class Chef data = "\"#{new_resource.path}\"" data << " #{new_resource.args}" if new_resource.args - declare_resource(:registry_key, registry_path) do + registry_key registry_path do values [{ name: new_resource.program_name, type: :string, @@ -64,7 +64,7 @@ class Chef action :remove do description "Remove an item that was previously setup to run at login" - declare_resource(:registry_key, registry_path) do + registry_key registry_path do values [{ name: new_resource.program_name, type: :string, |