mirror of https://github.com/containers/podman.git
Map configured status to created to match docker API states
Signed-off-by: Steve Taylor <steven@taylormuff.co.uk>
This commit is contained in:
parent
9088a8a387
commit
1ef96364fe
|
@ -355,11 +355,17 @@ func LibpodToContainer(l *libpod.Container, infoData []define.InfoData) (*Contai
|
|||
sizeRootFs int64
|
||||
sizeRW int64
|
||||
state define.ContainerStatus
|
||||
stateStr string
|
||||
)
|
||||
|
||||
if state, err = l.State(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
stateStr = state.String()
|
||||
if stateStr == "configured" {
|
||||
stateStr = "created"
|
||||
}
|
||||
|
||||
if sizeRW, err = l.RWSize(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -378,7 +384,7 @@ func LibpodToContainer(l *libpod.Container, infoData []define.InfoData) (*Contai
|
|||
SizeRw: sizeRW,
|
||||
SizeRootFs: sizeRootFs,
|
||||
Labels: l.Labels(),
|
||||
State: string(state),
|
||||
State: stateStr,
|
||||
Status: "",
|
||||
HostConfig: struct {
|
||||
NetworkMode string `json:",omitempty"`
|
||||
|
|
Loading…
Reference in New Issue