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

Commit

Permalink
fixing environment variable evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteJ committed Jun 30, 2014
1 parent 66abae5 commit 1ad14f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Vagrant.configure('2') do |config|
# better error messages from Hash.fetch
env = ENV.to_hash

associate_public_ip = ( env.fetch('BOSH_LITE_ASSOCIATE_PUBLIC_IP') =~ (/^(true|t|yes|y|1)$/i) ) if env.include?('BOSH_LITE_ASSOCIATE_PUBLIC_IP')
associate_public_ip = ( ['true','1'].include? env.fetch('BOSH_LITE_ASSOCIATE_PUBLIC_IP').downcase ) if env.include?('BOSH_LITE_ASSOCIATE_PUBLIC_IP')

config.vm.box = 'dummy'
config.vm.box_url = 'https://github.com/mitchellh/vagrant-aws/blob/master/dummy.box?raw=true'
Expand Down

0 comments on commit 1ad14f9

Please sign in to comment.