From d687473760bfd65eff2a5165ae4b182fcdcc9ab0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 28 Jan 2012 21:48:12 -0800 Subject: [PATCH] Fix crashing issue when all networks don't aut config [GH-689] --- CHANGELOG.md | 3 ++- lib/vagrant/action/vm/network.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49b52a440..3d6646c16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## 0.9.5 (unreleased) - + - Fix crashing case when all network options are `:auto_config false`. + [GH-689] ## 0.9.4 (January 28, 2012) diff --git a/lib/vagrant/action/vm/network.rb b/lib/vagrant/action/vm/network.rb index 122802027..94f7acd33 100644 --- a/lib/vagrant/action/vm/network.rb +++ b/lib/vagrant/action/vm/network.rb @@ -64,7 +64,7 @@ module Vagrant # setup until after it is booted. @app.call(env) - if !adapters.empty? + if !adapters.empty? && !networks.empty? # Determine the interface numbers for the guest. assign_interface_numbers(networks, adapters)