Host only networking only doesn't work on 64-bit Windows
This commit is contained in:
parent
fa1726a801
commit
6d6ca39795
|
@ -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
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue