Skip to content

Commit

Permalink
specs-go/config: Make consoleSize a pointer
Browse files Browse the repository at this point in the history
Otherwise we it will never be omitted when empty.  This is the same
case as 6323157 (specs-go/config: Make Linux and Solaris omitempty
(again), 2016-06-17, opencontainers#502).

Signed-off-by: W. Trevor King <wking@tremily.us>
  • Loading branch information
wking committed Sep 21, 2016
1 parent c356a80 commit bba3d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type Process struct {
// Terminal creates an interactive terminal for the container.
Terminal bool `json:"terminal,omitempty"`
// ConsoleSize specifies the size of the console.
ConsoleSize Box `json:"consoleSize,omitempty"`
ConsoleSize *Box `json:"consoleSize,omitempty"`
// User specifies user information for the process.
User User `json:"user"`
// Args specifies the binary and arguments for the application to execute.
Expand Down

0 comments on commit bba3d5c

Please sign in to comment.