Merge pull request #4013 from creack/remove_panic_lxc

Remove panic in lxc driver.
Upstream-commit: 40ede286b820ec5723f2c5123dbafaf36649d406
Component: engine
This commit is contained in:
Michael Crosby
2014-02-10 12:52:52 -05:00

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