Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Use long-hand Hash#slice + Hash#keys instead of Hash#except #575

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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