{"action":"opened","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/6291","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6291/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6291/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6291/events","html_url":"https://github.com/mitchellh/vagrant/issues/6291","id":107538958,"number":6291,"title":"Weird stdout behavior with vagrant up","user":{"login":"erg0dic","id":5550520,"avatar_url":"https://avatars.githubusercontent.com/u/5550520?v=3","gravatar_id":"","url":"https://api.github.com/users/erg0dic","html_url":"https://github.com/erg0dic","followers_url":"https://api.github.com/users/erg0dic/followers","following_url":"https://api.github.com/users/erg0dic/following{/other_user}","gists_url":"https://api.github.com/users/erg0dic/gists{/gist_id}","starred_url":"https://api.github.com/users/erg0dic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erg0dic/subscriptions","organizations_url":"https://api.github.com/users/erg0dic/orgs","repos_url":"https://api.github.com/users/erg0dic/repos","events_url":"https://api.github.com/users/erg0dic/events{/privacy}","received_events_url":"https://api.github.com/users/erg0dic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-21T15:36:36Z","updated_at":"2015-09-21T15:36:36Z","closed_at":null,"body":"### Vagrant version\r\n```\r\nrcj@mcdouble:seo-phase-1 $ vagrant --version\r\nVagrant 1.7.4\r\n```\r\n### My Vagrantfile\r\n```ruby\r\nrequire 'yaml'\r\n\r\n# Load user config\r\n# Based on: http://stackoverflow.com/questions/16708917/how-do-i-include-variables-in-my-vagrantfile\r\ncurrent_dir    = File.dirname(File.expand_path(__FILE__))\r\nvagrant_config = YAML.load_file(\"#{current_dir}/config.yaml\")\r\n\r\nVagrant.configure(2) do |config|\r\n  # Preconditions\r\n  unless ENV['SITE_SEO']\r\n    puts 'Error!'\r\n    raise 'You must set the SITE_SEO environment variable to the path ' +\r\n          'of the SEO project on the host machine!'\r\n  end\r\n\r\n  config.vm.box = vagrant_config['box']\r\n  config.vm.network :private_network, ip: '192.168.128.128'\r\n  config.vm.network :forwarded_port, guest: 8080, host: vagrant_config['seo_port']\r\n  config.vm.synced_folder ENV['SITE_SEO'], '/opt/seo'\r\n\r\n  config.vm.provider 'virtualbox' do |vb|\r\n    vb.memory = vagrant_config['vb_memory']\r\n  end\r\n\r\n  config.vm.provision 'ansible' do |ansible|\r\n    ansible.inventory_path = 'ansible/seo'\r\n    ansible.groups = {\r\n      'seo' => ['default']\r\n    }\r\n    ansible.playbook = 'ansible/site.yml'\r\n    ansible.sudo = true\r\n    ansible.sudo_user = 'root'\r\n    ansible.extra_vars = {\r\n      ansible_ssh_user: 'vagrant'\r\n    }\r\n  end\r\nend\r\n```\r\n\r\n### Output of ``vagrant up`` when unless block entered\r\n```\r\nrcj@mcdouble:seo-phase-1 $ vagrant up\r\nError!\r\nError!\r\n/Users/rcj/code/seo-phase-1/Vagrantfile:12:in `block in <top (required)>': You must set the SITE_SEO environment variable to the path of the SEO project on the host machine! (RuntimeError)\r\n<snip>\r\n```\r\n\r\n### Source of my confusion\r\nWhy is Error! output twice when the exception is only thrown once?"}}