From e7320c43a9a3ba039ec86bf82b9a17cf7feec07e Mon Sep 17 00:00:00 2001 From: Bryan McLellan Date: Wed, 27 Feb 2013 08:24:01 -0800 Subject: CHEF-1031: Switch to URI#host for 1.8 compat --- lib/chef/provider/remote_file/ftp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1