From d44f6cc0dbd715c35266c66be1f39434b4096145 Mon Sep 17 00:00:00 2001 From: David Illsley Date: Fri, 15 Nov 2013 17:22:40 +0000 Subject: [PATCH] [aws:storage] path_style option availability The path_style option should be available regardless of how an endpoint override is specified --- lib/fog/aws/storage.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fog/aws/storage.rb b/lib/fog/aws/storage.rb index 9bc560191..6a6178e00 100644 --- a/lib/fog/aws/storage.rb +++ b/lib/fog/aws/storage.rb @@ -413,6 +413,8 @@ module Fog @connection_options = options[:connection_options] || {} @persistent = options.fetch(:persistent, false) + @path_style = options[:path_style] || false + if @endpoint = options[:endpoint] endpoint = URI.parse(@endpoint) @host = endpoint.host @@ -423,7 +425,6 @@ module Fog @host = options[:host] || region_to_host(@region) @scheme = options[:scheme] || DEFAULT_SCHEME @port = options[:port] || DEFAULT_SCHEME_PORT[@scheme] - @path_style = options[:path_style] || false end end