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
|
end
|
||||||
|
|
||||||
def state
|
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
|
$1.downcase.to_sym
|
||||||
elsif @name
|
elsif @name
|
||||||
:unknown
|
:unknown
|
||||||
|
@ -75,6 +75,7 @@ module Vagrant
|
||||||
end
|
end
|
||||||
|
|
||||||
def stop
|
def stop
|
||||||
|
attach '/sbin/halt'
|
||||||
run :stop, '--name', @name
|
run :stop, '--name', @name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue