Merge pull request #1206 from nlacasse/state-ignore-stderr
Only parse stdout from "state" command. Ignore stderr.
This commit is contained in:
commit
1f3fbdc987
1 changed files with 1 additions and 1 deletions
|
@ -669,7 +669,7 @@ func (r *Runtime) SetStartFailed(c *Container, err error) {
|
|||
func (r *Runtime) UpdateStatus(c *Container) error {
|
||||
c.opLock.Lock()
|
||||
defer c.opLock.Unlock()
|
||||
out, err := exec.Command(r.Path(c), "state", c.id).CombinedOutput()
|
||||
out, err := exec.Command(r.Path(c), "state", c.id).Output()
|
||||
if err != nil {
|
||||
// there are many code paths that could lead to have a bad state in the
|
||||
// underlying runtime.
|
||||
|
|
Loading…
Reference in a new issue