Merge pull request #4013 from creack/remove_panic_lxc

Remove panic in lxc driver.
This commit is contained in:
Michael Crosby 2014-02-10 12:52:52 -05:00
commit 40ede286b8
1 changed files with 2 additions and 1 deletions

View File

@ -279,7 +279,8 @@ func (i *info) IsRunning() bool {
output, err := i.driver.getInfo(i.ID)
if err != nil {
panic(err)
utils.Errorf("Error getting info for lxc container %s: %s (%s)", i.ID, err, output)
return false
}
if strings.Contains(string(output), "RUNNING") {
running = true