1
0
Fork 0
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:
KevinLoiseau 2019-03-27 09:26:00 +01:00
parent f3adf149ec
commit 985d7b37b9
No known key found for this signature in database
GPG key ID: 709159A779B96CC3

View file

@ -14,7 +14,7 @@ module Fog
class ValidationError < Fog::Errors::Error; end
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 :configure_health_check
@ -142,6 +142,7 @@ module Fog
@port = options[:port] || 443
@scheme = options[:scheme] || 'https'
@connection = Fog::XML::Connection.new("#{@scheme}://#{@host}:#{@port}#{@path}", @persistent, @connection_options)
@version = options[:version] || '2012-06-01'
setup_credentials(options)
end
@ -178,7 +179,7 @@ module Fog
:host => @host,
:path => @path,
:port => @port,
:version => '2012-06-01',
:version => @version,
:method => 'POST'
}
)