summaryrefslogtreecommitdiff
path: root/lib/chef/resource/remote_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/remote_file.rb')
-rw-r--r--lib/chef/resource/remote_file.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/resource/remote_file.rb b/lib/chef/resource/remote_file.rb
index fae3e10695..d654829ee7 100644
--- a/lib/chef/resource/remote_file.rb
+++ b/lib/chef/resource/remote_file.rb
@@ -161,6 +161,7 @@ class Chef
def validate_source(source)
source = Array(source).flatten
raise ArgumentError, "#{resource_name} has an empty source" if source.empty?
+
source.each do |src|
unless absolute_uri?(src)
raise Exceptions::InvalidRemoteFileURI,