vagrant-aws icon indicating copy to clipboard operation
vagrant-aws copied to clipboard

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

Open al-the-x opened this issue 4 years ago • 2 comments

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

al-the-x avatar Aug 20 '20 19:08 al-the-x

I confirm it works good for me.

PxSonny avatar Sep 09 '20 03:09 PxSonny

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

vohi avatar Sep 16 '20 08:09 vohi