Merge branch 'fixes' of https://github.com/attilabogar/vagrant-lxc into next
This commit is contained in:
commit
5db318d26f
1 changed files with 2 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) =~ /^[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
|
||||
|
||||
|
|
Loading…
Reference in a new issue