diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-02-25 15:34:34 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-02-25 15:41:58 -0800 |
commit | 5120ee586e47339b9e3cb8b822c193f8425b53a5 (patch) | |
tree | 9e0c7a2d115458a0fdc3e24974527a58693f3891 /lib/chef/resource/execute.rb | |
parent | 6655b02af9b63caed67fd839d0437bb8b828a56b (diff) | |
download | chef-5120ee586e47339b9e3cb8b822c193f8425b53a5.tar.gz |
Use the chef-utils helpers in our resources
Use the helpers we now ship to simplify platform detection.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/execute.rb')
-rw-r--r-- | lib/chef/resource/execute.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/execute.rb b/lib/chef/resource/execute.rb index ecb1944742..0f61aaf4c8 100644 --- a/lib/chef/resource/execute.rb +++ b/lib/chef/resource/execute.rb @@ -131,7 +131,7 @@ class Chef end def validate_identity_platform(specified_user, password = nil, specified_domain = nil, elevated = false) - if node[:platform_family] == "windows" + if windows? if specified_user && password.nil? raise ArgumentError, "A value for `password` must be specified when a value for `user` is specified on the Windows platform" end |