Fix typo (netmast => netmask) for Photon guest #7808

This commit is contained in:
Mark Peek 2016-10-06 13:23:13 -07:00
parent d96dc95076
commit 4bf32e3f6d
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -45,7 +45,7 @@ describe "VagrantPlugins::GuestPhoton::Cap:ConfigureNetworks" do
it "creates and starts the networks" do it "creates and starts the networks" do
cap.configure_networks(machine, [network_1, network_2]) 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 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 end
end end