From c4fd9814c0895d405efbe550ccf703e75a751df1 Mon Sep 17 00:00:00 2001 From: "David Rogers AKA \"AL the X" Date: Thu, 20 Aug 2020 15:08:05 -0400 Subject: [PATCH] Use long-hand `Hash#slice` + `Hash#keys` Since `Hash#except` is not in standard Ruby and Vagrant removed `active_support` that provides the polyfill. Resolves mitchellh/vagrant-aws#566 --- lib/vagrant-aws/action/connect_aws.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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