diff options
author | Bryan McLellan <btm@opscode.com> | 2013-02-27 08:24:01 -0800 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-02-27 08:24:01 -0800 |
commit | e7320c43a9a3ba039ec86bf82b9a17cf7feec07e (patch) | |
tree | 4c5dd6ce7c8af79ec43d441ff5b76b40887c9672 | |
parent | a82935b4a8e1e8174d02e83259f07ea9926dd007 (diff) | |
download | chef-e7320c43a9a3ba039ec86bf82b9a17cf7feec07e.tar.gz |
CHEF-1031: Switch to URI#host for 1.8 compat
-rw-r--r-- | lib/chef/provider/remote_file/ftp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/remote_file/ftp.rb b/lib/chef/provider/remote_file/ftp.rb index 3c5d3e0a91..9efc4ca08e 100644 --- a/lib/chef/provider/remote_file/ftp.rb +++ b/lib/chef/provider/remote_file/ftp.rb @@ -40,7 +40,7 @@ class Chef raise ArgumentError, "invalid typecode: #{@typecode.inspect}" end @ftp_active_mode = ftp_active_mode - @hostname = uri.hostname + @hostname = uri.host @port = uri.port if uri.userinfo @user = URI.unescape(uri.user) |