diff options
author | Lamont Granquist <lamont@opscode.com> | 2013-03-25 17:40:47 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@opscode.com> | 2013-03-25 17:40:47 -0700 |
commit | 5d52504695ce1b7d65109fcd4e50a31b6c5bd7fe (patch) | |
tree | 1083e69f678d0b4362a33c46b8e2d0843297182d | |
parent | b0027cb34a08a68d9c912c6923f00c7e2d6cf1c7 (diff) | |
download | chef-5d52504695ce1b7d65109fcd4e50a31b6c5bd7fe.tar.gz |
@current_resource.source may be nil
-rw-r--r-- | lib/chef/provider/remote_file/content.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/remote_file/content.rb b/lib/chef/provider/remote_file/content.rb index 21472b699c..4041f328fb 100644 --- a/lib/chef/provider/remote_file/content.rb +++ b/lib/chef/provider/remote_file/content.rb @@ -75,7 +75,7 @@ class Chef if uri_dup.userinfo uri_dup.password = "********" end - if uri_dup.to_s == @current_resource.source[0] + if @current_resource.source && ( uri_dup.to_s == @current_resource.source[0] ) if_modified_since ||= @current_resource.last_modified if_none_match ||= @current_resource.etag end |