diff options
-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 |