Skip to content

Commit

Permalink
Replace Hash#except with Hash#slice.
Browse files Browse the repository at this point in the history
Since Hash#except is not in standard Ruby and Vagrant removed active_support i18n that provides the polyfill in Vagrant 2.2.7; even the polyfill was just Hash#slice minus the requested keys. Seemed simpler to inline than monkey-patch Hash...

Resolves mitchellh#566

Based on mitchellh#575
  • Loading branch information
mkubenka committed Nov 3, 2020
1 parent 5ec4001 commit e9dcdfb
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 e9dcdfb

Please sign in to comment.