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
|
@app = app
|
||||||
@env = env
|
@env = env
|
||||||
|
|
||||||
if enable_network? && Util::Platform.windows?
|
if enable_network? && Util::Platform.windows? && Util::Platform.bit64?
|
||||||
raise Errors::NetworkNotImplemented
|
raise Errors::NetworkNotImplemented
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,9 @@ class NetworkVMActionTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
context "initializing" do
|
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(:windows?).returns(true)
|
||||||
|
Vagrant::Util::Platform.stubs(:bit64?).returns(true)
|
||||||
@env.env.config.vm.network("foo")
|
@env.env.config.vm.network("foo")
|
||||||
|
|
||||||
assert_raises(Vagrant::Errors::NetworkNotImplemented) {
|
assert_raises(Vagrant::Errors::NetworkNotImplemented) {
|
||||||
|
|
Loading…
Reference in New Issue