This commit is contained in:
Fabio Rehm 2014-02-02 19:49:24 -02:00
commit 5db318d26f

View file

@ -38,7 +38,7 @@ module Vagrant
end end
def state def state
if @name && run(:info, '--name', @name, retryable: true) =~ /^state:[^A-Z]+([A-Z]+)$/ if @name && run(:info, '--name', @name, retryable: true) =~ /^[Ss]tate: *[^A-Z]+([A-Z]+)$/
$1.downcase.to_sym $1.downcase.to_sym
elsif @name elsif @name
:unknown :unknown
@ -75,6 +75,7 @@ module Vagrant
end end
def stop def stop
attach '/sbin/halt'
run :stop, '--name', @name run :stop, '--name', @name
end end