Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-richardson authored Jan 18, 2021
1 parent f8f5a6e commit 8f27221
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

VAGRANT_FILE_API_VERSION = "2"

# start workaround for https://github.com/mitchellh/vagrant-aws/issues/566
class Hash
def slice(*keep_keys)
h = {}
keep_keys.each { |key| h[key] = fetch(key) if has_key?(key) }
h
end unless Hash.method_defined?(:slice)
def except(*less_keys)
slice(*keys - less_keys)
end unless Hash.method_defined?(:except)
end
# end workaround for https://github.com/mitchellh/vagrant-aws/issues/566

aws_access_key_id = ENV['AWS_ACCESS_KEY_ID'] || 'not-set'
aws_secret_access_key = ENV['AWS_SECRET_ACCESS_KEY'] || 'not-set'
aws_subnet_id = ENV['AWS_SUBNET_ID'] || 'not-set'
Expand Down

0 comments on commit 8f27221

Please sign in to comment.