oci: do not serialize empty fields on disk
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
6622feb480
commit
4a8debe6c5
1 changed files with 3 additions and 3 deletions
|
@ -39,9 +39,9 @@ type Container struct {
|
||||||
type ContainerState struct {
|
type ContainerState struct {
|
||||||
specs.State
|
specs.State
|
||||||
Created time.Time `json:"created"`
|
Created time.Time `json:"created"`
|
||||||
Started time.Time `json:"started"`
|
Started time.Time `json:"started,omitempty"`
|
||||||
Finished time.Time `json:"finished"`
|
Finished time.Time `json:"finished,omitempty"`
|
||||||
ExitCode int32 `json:"exitCode"`
|
ExitCode int32 `json:"exitCode,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewContainer creates a container object.
|
// NewContainer creates a container object.
|
||||||
|
|
Loading…
Add table
Reference in a new issue