fix incompatibility issue with ppa:ubuntu-lxc/stable and ppa:ubuntu-lxc/daily

This commit is contained in:
Attila Bogár 2013-11-19 22:23:25 +00:00
parent 6779556650
commit e4e4551aea

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