mitchellh / vagrant-aws

Use Vagrant to manage your EC2 and VPC instances.
MIT License
2.61k stars 574 forks source link

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

Open al-the-x opened 3 years ago

al-the-x commented 3 years ago

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/vagrant-aws#566

PxSonny commented 3 years ago

I confirm it works good for me.

vohi commented 3 years ago

Thanks, needed to make a similar patch to my installation of the plugin on a macOS 10.14 host with vagrant 2.2.9