Fix ordering of forwarded_port call
This commit is contained in:
parent
559cf25b5f
commit
7a9363e8a1
|
@ -17,7 +17,7 @@ Vagrant.configure("2") do |config|
|
|||
config.vm.guest = :linux
|
||||
|
||||
# Share SSH locally by default
|
||||
config.vm.network :forwarded_port, 22, 2222, :id => "ssh", :auto => true
|
||||
config.vm.network :forwarded_port, 2222, 22, :id => "ssh", :auto => true
|
||||
|
||||
# Share the root folder. This can then be overridden by
|
||||
# other Vagrantfiles, if they wish.
|
||||
|
|
|
@ -73,8 +73,8 @@ module VagrantPlugins
|
|||
execute("list", "vms").split("\n").each do |line|
|
||||
if line =~ /^".+?"\s+\{(.+?)\}$/
|
||||
info = execute("showvminfo", $1.to_s, "--machinereadable", :retryable => true)
|
||||
info.split("\n").each do |line|
|
||||
if line =~ /^hostonlyadapter\d+="(.+?)"$/
|
||||
info.split("\n").each do |inner_line|
|
||||
if inner_line =~ /^hostonlyadapter\d+="(.+?)"$/
|
||||
networks.delete($1.to_s)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue