diff options
author | Jesse Campbell <hikeit@gmail.com> | 2013-02-28 12:08:50 -0500 |
---|---|---|
committer | Jesse Campbell <hikeit@gmail.com> | 2013-02-28 12:08:50 -0500 |
commit | 6bd68e0ac82621df3438980a13b49bd9270291c6 (patch) | |
tree | d962acf6523cc51b3124012c20cd9b002775e310 /lib/chef/provider/remote_file.rb | |
parent | 6a8476ef8edb618e6a0fc7169e81aa900dd8260f (diff) | |
download | chef-6bd68e0ac82621df3438980a13b49bd9270291c6.tar.gz |
minor bugs
Diffstat (limited to 'lib/chef/provider/remote_file.rb')
-rw-r--r-- | lib/chef/provider/remote_file.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef/provider/remote_file.rb b/lib/chef/provider/remote_file.rb index 553e700b16..01b06e6bd3 100644 --- a/lib/chef/provider/remote_file.rb +++ b/lib/chef/provider/remote_file.rb @@ -136,7 +136,11 @@ class Chef def grab_file_from_uri(uri) if_modified_since = @new_resource.last_modified if_none_match = @new_resource.etag - if uri.to_s == @current_resource.source[0] + uri_dup = uri.dup + if uri_dup.userinfo + uri_dup.password = "********" + end + if uri_dup.to_s == @current_resource.source[0] if_modified_since ||= @current_resource.last_modified if_none_match ||= @current_resource.etag end |