diff options
author | Tim Smith <tsmith@chef.io> | 2018-08-31 17:15:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-31 17:15:14 -0700 |
commit | 23d9aa1b08df44db32141fe4e4ad3e51b9580beb (patch) | |
tree | a6fd9d21421c23f324630fe166abcb9f4899bf42 | |
parent | 783d39e049f863e620b9518ca1ddfebdae74831b (diff) | |
parent | 74d6820f4532b4a75f205f5122de4f70b0de1a41 (diff) | |
download | chef-23d9aa1b08df44db32141fe4e4ad3e51b9580beb.tar.gz |
Merge pull request #7608 from chef/declare
windows_auto_run: Avoid declare_resource where it's not needed
-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, |