diff options
author | nimisha <nimisha.sharad@msystechnologies.com> | 2017-02-01 11:51:21 +0530 |
---|---|---|
committer | nimisha <nimisha.sharad@msystechnologies.com> | 2017-02-02 18:00:42 +0530 |
commit | 5b0777edbedb8add8756721fafa4848dfcd4274d (patch) | |
tree | 21da7a1169d6918c02a71edf3c2ad76026b75119 /lib/chef/resource/execute.rb | |
parent | c6e87d9655617d7d4b334b3e565cdac3abe443b0 (diff) | |
download | chef-5b0777edbedb8add8756721fafa4848dfcd4274d.tar.gz |
Using node[:platform_family] for checking windows platform
Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
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 cf81a24cec..3bf504cb26 100644 --- a/lib/chef/resource/execute.rb +++ b/lib/chef/resource/execute.rb @@ -165,7 +165,7 @@ class Chef end def validate_identity_platform(specified_user, password = nil, specified_domain = nil) - if Chef::Platform.windows? + if node[:platform_family] == "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 |