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 {
|
||||
specs.State
|
||||
Created time.Time `json:"created"`
|
||||
Started time.Time `json:"started"`
|
||||
Finished time.Time `json:"finished"`
|
||||
ExitCode int32 `json:"exitCode"`
|
||||
Started time.Time `json:"started,omitempty"`
|
||||
Finished time.Time `json:"finished,omitempty"`
|
||||
ExitCode int32 `json:"exitCode,omitempty"`
|
||||
}
|
||||
|
||||
// NewContainer creates a container object.
|
||||
|
|
Loading…
Reference in a new issue