diff --git a/lib/vagrant-aws/action/connect_aws.rb b/lib/vagrant-aws/action/connect_aws.rb index 76beda6f..eb5639f3 100644 --- a/lib/vagrant-aws/action/connect_aws.rb +++ b/lib/vagrant-aws/action/connect_aws.rb @@ -38,7 +38,7 @@ def call(env) @logger.info("Connecting to AWS...") env[:aws_compute] = Fog::Compute.new(fog_config) - env[:aws_elb] = Fog::AWS::ELB.new(fog_config.except(:provider, :endpoint)) + env[:aws_elb] = Fog::AWS::ELB.new(fog_config.slice(fog_config.keys - [:provider, :endpoint])) @app.call(env) end