diff options
author | Tim Smith <tsmith@chef.io> | 2017-12-14 15:18:43 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-12-15 08:16:28 -0800 |
commit | f47a13bf6384927df90194d852498a51aa694fe9 (patch) | |
tree | 0221a37ecdddddf9931d12f34261edbdbc8ae87b | |
parent | 3b55abbb30fcb6a8cbb4f58b16023bcfc38a44f3 (diff) | |
download | chef-f47a13bf6384927df90194d852498a51aa694fe9.tar.gz |
Fix for readability and a failing test
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/msu_package.rb | 3 | ||||
-rw-r--r-- | lib/chef/resource/windows_task.rb | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/resource/msu_package.rb b/lib/chef/resource/msu_package.rb index c297f5b858..65959c5621 100644 --- a/lib/chef/resource/msu_package.rb +++ b/lib/chef/resource/msu_package.rb @@ -31,11 +31,12 @@ class Chef default_action :install property :source, String, + name_property: true, coerce: (proc do |s| unless s.nil? uri_scheme?(s) ? s : Chef::Util::PathHelper.canonical_path(s, false) end - end), name_property: true + end) property :checksum, String, desired_state: false end end diff --git a/lib/chef/resource/windows_task.rb b/lib/chef/resource/windows_task.rb index a5fead7b13..344ce50b64 100644 --- a/lib/chef/resource/windows_task.rb +++ b/lib/chef/resource/windows_task.rb @@ -22,7 +22,7 @@ class Chef class Resource class WindowsTask < Chef::Resource - resource_name: :windows_task + resource_name :windows_task provides :windows_task, os: "windows" allowed_actions :create, :delete, :run, :end, :enable, :disable |