Fix regex warning for Ruby 1.8.7

This commit is contained in:
Mitchell Hashimoto 2011-12-31 04:22:44 +09:00
parent b66755cf26
commit 3f0bd6def4
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ module Vagrant
end
execute("list", "vms").split("\n").each do |line|
if line =~ /^".+?"\s+{(.+?)}$/
if line =~ /^".+?"\s+\{(.+?)\}$/
execute("showvminfo", $1.to_s, "--machinereadable").split("\n").each do |info|
if info =~ /^hostonlyadapter\d+="(.+?)"$/
networks.delete($1.to_s)