Merge pull request #7873 from markpeek/markpeek-photon-netmask

Fix typo (netmast => netmask) for Photon guest #7808
This commit is contained in:
Chris Roberts 2016-10-07 15:15:26 -07:00 committed by GitHub
commit 33b13dffbe
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ module VagrantPlugins
device = interfaces[network[:interface]]
command = "ifconfig #{device}"
command << " #{network[:ip]}" if network[:ip]
command << " netmast #{network[:netmask]}" if network[:netmask]
command << " netmask #{network[:netmask]}" if network[:netmask]
commands << command
end

View File

@ -45,7 +45,7 @@ describe "VagrantPlugins::GuestPhoton::Cap:ConfigureNetworks" do
it "creates and starts the networks" do
cap.configure_networks(machine, [network_1, network_2])
expect(comm.received_commands[1]).to match(/ifconfig eth1/)
expect(comm.received_commands[1]).to match(/ifconfig eth2 33.33.33.10 netmast 255.255.0.0/)
expect(comm.received_commands[1]).to match(/ifconfig eth2 33.33.33.10 netmask 255.255.0.0/)
end
end
end