From cb7f5c74968bdbf548edd815742fb03974c26666 Mon Sep 17 00:00:00 2001 From: "Brian D. Burns" Date: Thu, 17 Oct 2013 23:06:52 -0400 Subject: [PATCH] [aws|storage] remove unused :path option --- lib/fog/aws/storage.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/fog/aws/storage.rb b/lib/fog/aws/storage.rb index 69c7680da..c29736416 100644 --- a/lib/fog/aws/storage.rb +++ b/lib/fog/aws/storage.rb @@ -44,7 +44,7 @@ module Fog ] requires :aws_access_key_id, :aws_secret_access_key - recognizes :endpoint, :region, :host, :path, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :path_style + recognizes :endpoint, :region, :host, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :path_style secrets :aws_secret_access_key, :hmac @@ -403,17 +403,11 @@ module Fog if @endpoint = options[:endpoint] endpoint = URI.parse(@endpoint) @host = endpoint.host - @path = if endpoint.path.empty? - '/' - else - endpoint.path - end @scheme = endpoint.scheme @port = endpoint.port else @region = options[:region] || DEFAULT_REGION @host = options[:host] || region_to_host(@region) - @path = options[:path] || '/' @scheme = options[:scheme] || DEFAULT_SCHEME @port = options[:port] || DEFAULT_SCHEME_PORT[@scheme] @path_style = options[:path_style] || false