Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add configuration for path_style to RiakCS Provisioning client. #2601

Merged
merged 1 commit into from

3 participants

@cf-blobstore-eng

Defaults to false if no user input is given (following the style for the s3client default settings).

Derek Richard and Karen Wang Add configuration for path_style to RiakCS Provisioning client. Defau…
…lts the false if no user input is given (following the style for the s3client default settings).
27ebf8a
@geemus
Owner

@cmeiklejohn - could you review?

@plribeiro3000
Collaborator

Fog::Storage[:aws] does recognize path_style so this is good to go.

@plribeiro3000 plribeiro3000 merged commit e983c40 into from
@geemus
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 24, 2014
  1. Add configuration for path_style to RiakCS Provisioning client. Defau…

    Derek Richard and Karen Wang authored
    …lts the false if no user input is given (following the style for the s3client default settings).
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/fog/riakcs/provisioning.rb
View
4 lib/fog/riakcs/provisioning.rb
@@ -8,7 +8,7 @@ class UserAlreadyExists < Fog::RiakCS::Provisioning::Error; end
class ServiceUnavailable < Fog::RiakCS::Provisioning::Error; end
requires :riakcs_access_key_id, :riakcs_secret_access_key
- recognizes :host, :path, :port, :scheme, :persistent
+ recognizes :host, :path, :port, :scheme, :persistent, :path_style
request_path 'fog/riakcs/requests/provisioning'
request :create_user
@@ -52,6 +52,7 @@ def initialize(options = {})
@riakcs_secret_access_key = options[:riakcs_secret_access_key]
@connection_options = options[:connection_options] || {}
@persistent = options[:persistent] || false
+ @path_style = options[:path_style] || false
@raw_connection = Fog::Connection.new(riakcs_uri, @persistent, @connection_options)
@@ -62,6 +63,7 @@ def initialize(options = {})
:host => @host,
:port => @port,
:scheme => @scheme,
+ :path_style => @path_style,
:connection_options => @connection_options
)
end
Something went wrong with that request. Please try again.