mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
ELB service version could be set manually
This commit is contained in:
parent
f3adf149ec
commit
985d7b37b9
1 changed files with 3 additions and 2 deletions
|
@ -14,7 +14,7 @@ module Fog
|
||||||
class ValidationError < Fog::Errors::Error; end
|
class ValidationError < Fog::Errors::Error; end
|
||||||
|
|
||||||
requires :aws_access_key_id, :aws_secret_access_key
|
requires :aws_access_key_id, :aws_secret_access_key
|
||||||
recognizes :region, :host, :path, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :instrumentor, :instrumentor_name
|
recognizes :region, :host, :path, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :version, :instrumentor, :instrumentor_name
|
||||||
|
|
||||||
request_path 'fog/aws/requests/elb'
|
request_path 'fog/aws/requests/elb'
|
||||||
request :configure_health_check
|
request :configure_health_check
|
||||||
|
@ -142,6 +142,7 @@ module Fog
|
||||||
@port = options[:port] || 443
|
@port = options[:port] || 443
|
||||||
@scheme = options[:scheme] || 'https'
|
@scheme = options[:scheme] || 'https'
|
||||||
@connection = Fog::XML::Connection.new("#{@scheme}://#{@host}:#{@port}#{@path}", @persistent, @connection_options)
|
@connection = Fog::XML::Connection.new("#{@scheme}://#{@host}:#{@port}#{@path}", @persistent, @connection_options)
|
||||||
|
@version = options[:version] || '2012-06-01'
|
||||||
|
|
||||||
setup_credentials(options)
|
setup_credentials(options)
|
||||||
end
|
end
|
||||||
|
@ -178,7 +179,7 @@ module Fog
|
||||||
:host => @host,
|
:host => @host,
|
||||||
:path => @path,
|
:path => @path,
|
||||||
:port => @port,
|
:port => @port,
|
||||||
:version => '2012-06-01',
|
:version => @version,
|
||||||
:method => 'POST'
|
:method => 'POST'
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue