diff options
author | Jesse Campbell <hikeit@gmail.com> | 2013-02-13 18:49:30 -0500 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-02-26 11:11:44 -0800 |
commit | 31e5726fd6913227bd23faf0b48b2d19b306b5e2 (patch) | |
tree | 9ef6968aa68976995df31d33e8b76ecfed2b9763 | |
parent | 77fed4d37369e92cca423efdef7b1a72a18a190f (diff) | |
download | chef-31e5726fd6913227bd23faf0b48b2d19b306b5e2.tar.gz |
incorrect refs to inaccessible 'uri'
-rw-r--r-- | lib/chef/provider/remote_file/ftp.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/remote_file/ftp.rb b/lib/chef/provider/remote_file/ftp.rb index 3b142dcd93..0d841408c7 100644 --- a/lib/chef/provider/remote_file/ftp.rb +++ b/lib/chef/provider/remote_file/ftp.rb @@ -58,10 +58,10 @@ class Chef d.gsub!(/%([0-9A-Fa-f][0-9A-Fa-f])/) { [$1].pack("H2") } } unless filename = directories.pop - raise ArgumentError, "no filename: #{uri.inspect}" + raise ArgumentError, "no filename: #{path.inspect}" end if filename.length == 0 || filename.end_with?( "/" ) - raise ArgumentError, "no filename: #{uri.inspect}" + raise ArgumentError, "no filename: #{path.inspect}" end return directories, filename end |