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
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
elsif @name
:unknown
@ -75,6 +75,7 @@ module Vagrant
end
def stop
attach '/sbin/halt'
run :stop, '--name', @name
end