fixed, case insensitive matching

lxc version: 1.0.0.alpha3
$ sudo lxc-info -n test_default-1387877096
Name:           test_default-1387877096
State:          RUNNING
....
This commit is contained in:
Hiro 2013-12-24 18:35:19 +09:00
parent c19bc91e70
commit a436e30214

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) =~ /^state:[^A-Z]+([A-Z]+)$/i
$1.downcase.to_sym
elsif @name
:unknown