diff options
author | nimisha <nimisha.sharad@msystechnologies.com> | 2017-03-01 13:38:16 +0530 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2017-09-05 20:09:30 -0400 |
commit | 3efe94760ff2d3743431a88331256bface534847 (patch) | |
tree | c96d2473b809c8e7de67dc5bd3f5a3dcf35f549a /lib/chef | |
parent | 6db927f1b31b5caa80c7bf26634a08ccb95f623d (diff) | |
download | chef-3efe94760ff2d3743431a88331256bface534847.tar.gz |
Fixing review comments
Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/resource/remote_file.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/chef/resource/remote_file.rb b/lib/chef/resource/remote_file.rb index 190428938d..bd0cf03360 100644 --- a/lib/chef/resource/remote_file.rb +++ b/lib/chef/resource/remote_file.rb @@ -155,11 +155,7 @@ class Chef def validate_identity_platform(specified_user, password = nil, specified_domain = nil) 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 - else - if password || specified_domain - raise Exceptions::UnsupportedPlatform, "Values for `domain` and `password` are only supported on the Windows platform" + raise ArgumentError, "A value for `remote_password` must be specified when a value for `user` is specified on the Windows platform" end end end |