diff options
author | snehaldwivedi <sdwivedi@msystechnologies.com> | 2021-08-12 10:54:30 +0000 |
---|---|---|
committer | snehaldwivedi <sdwivedi@msystechnologies.com> | 2021-08-12 10:54:30 +0000 |
commit | 3df67a06d874376b7d59573e4e1d6845a8129aaa (patch) | |
tree | 42baf9047b9fef86c9a14ca134689c016e8863f6 /lib | |
parent | a9a073b0a3e5bc9f73ac57e95393c0060cbe7809 (diff) | |
download | chef-3df67a06d874376b7d59573e4e1d6845a8129aaa.tar.gz |
fixed exception: privilege is a required property, even when it was setsnehal/fix_exception_privilege_is_a_required_property_even_though_its_set
Signed-off-by: snehaldwivedi <sdwivedi@msystechnologies.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/resource/windows_user_privilege.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/windows_user_privilege.rb b/lib/chef/resource/windows_user_privilege.rb index 36dd730f64..2d4a395a7c 100644 --- a/lib/chef/resource/windows_user_privilege.rb +++ b/lib/chef/resource/windows_user_privilege.rb @@ -139,7 +139,7 @@ class Chef coerce: proc { |v| Array(v) }, callbacks: { "Privilege property restricted to the following values: #{PRIVILEGE_OPTS}" => lambda { |n| (n - PRIVILEGE_OPTS).empty? }, - } + }, identity: true load_current_value do |new_resource| if new_resource.principal && (new_resource.action.include?(:add) || new_resource.action.include?(:remove)) |