summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authornimisha <nimisha.sharad@msystechnologies.com>2017-03-01 13:38:16 +0530
committerBryan McLellan <btm@loftninjas.org>2017-09-05 20:09:30 -0400
commit3efe94760ff2d3743431a88331256bface534847 (patch)
treec96d2473b809c8e7de67dc5bd3f5a3dcf35f549a /lib/chef
parent6db927f1b31b5caa80c7bf26634a08ccb95f623d (diff)
downloadchef-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.rb6
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