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:
parent
c19bc91e70
commit
a436e30214
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue