Skip to content

Commit

Permalink
Use long-hand Hash#slice + Hash#keys
Browse files Browse the repository at this point in the history
Since `Hash#except` is not in standard Ruby and Vagrant removed `active_support` that provides the polyfill.

Resolves mitchellh#566
  • Loading branch information
al-the-x authored Aug 20, 2020
1 parent 43e7ec2 commit c4fd981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-aws/action/connect_aws.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4fd981

Please sign in to comment.