Host only networking only doesn't work on 64-bit Windows

This commit is contained in:
Mitchell Hashimoto 2011-01-29 21:03:27 -08:00
parent fa1726a801
commit 6d6ca39795
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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) {