From 6d6ca39795a233bf619c61e498949cb3913e9978 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 29 Jan 2011 21:03:27 -0800 Subject: [PATCH] Host only networking only doesn't work on 64-bit Windows --- lib/vagrant/action/vm/network.rb | 2 +- test/vagrant/action/vm/network_test.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/action/vm/network.rb b/lib/vagrant/action/vm/network.rb index afed943cc..35375aa7f 100644 --- a/lib/vagrant/action/vm/network.rb +++ b/lib/vagrant/action/vm/network.rb @@ -8,7 +8,7 @@ module Vagrant @app = app @env = env - if enable_network? && Util::Platform.windows? + if enable_network? && Util::Platform.windows? && Util::Platform.bit64? raise Errors::NetworkNotImplemented end diff --git a/test/vagrant/action/vm/network_test.rb b/test/vagrant/action/vm/network_test.rb index 33626d3ab..f8d64fa0a 100644 --- a/test/vagrant/action/vm/network_test.rb +++ b/test/vagrant/action/vm/network_test.rb @@ -16,8 +16,9 @@ class NetworkVMActionTest < Test::Unit::TestCase end context "initializing" do - should "raise an error if on windows and networking is enabled" do + should "raise an error if on windows x64 and networking is enabled" do Vagrant::Util::Platform.stubs(:windows?).returns(true) + Vagrant::Util::Platform.stubs(:bit64?).returns(true) @env.env.config.vm.network("foo") assert_raises(Vagrant::Errors::NetworkNotImplemented) {