summaryrefslogtreecommitdiff
path: root/lib/chef/resource/remote_file.rb
diff options
context:
space:
mode:
authorJesse Campbell <hikeit@gmail.com>2013-02-13 21:10:06 -0500
committerJesse Campbell <hikeit@gmail.com>2013-02-13 21:10:06 -0500
commitf54a08a4111482afe78a3c3b521978c882c96652 (patch)
tree06e3113347ab06fe21c900b020ffe850ab59c897 /lib/chef/resource/remote_file.rb
parentfb67b73de69dd7d07c311bc8360fa42c41d4077d (diff)
downloadchef-f54a08a4111482afe78a3c3b521978c882c96652.tar.gz
CHEF-3859: remote file resource fails ungracefully when no source is
set.
Diffstat (limited to 'lib/chef/resource/remote_file.rb')
-rw-r--r--lib/chef/resource/remote_file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/remote_file.rb b/lib/chef/resource/remote_file.rb
index 21e1a2680f..524e00186b 100644
--- a/lib/chef/resource/remote_file.rb
+++ b/lib/chef/resource/remote_file.rb
@@ -32,7 +32,7 @@ class Chef
super
@resource_name = :remote_file
@action = "create"
- @source = nil
+ @source = []
@ftp_active_mode = false
@provider = Chef::Provider::RemoteFile
end