id and name indexes for pods
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
361fc8fde7
commit
32029aaba6
4 changed files with 95 additions and 61 deletions
|
@ -147,7 +147,7 @@ func (r *Runtime) UpdateStatus(c *Container) error {
|
|||
defer c.stateLock.Unlock()
|
||||
out, err := exec.Command(r.path, "state", c.name).Output()
|
||||
if err != nil {
|
||||
return fmt.Errorf("error getting container state for %s: %s", c.name, err)
|
||||
return fmt.Errorf("error getting container state for %s: %s: %v", c.name, err, out)
|
||||
}
|
||||
stateReader := bytes.NewReader(out)
|
||||
if err := json.NewDecoder(stateReader).Decode(&c.state); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue