From 41e94ae3d5e4f109c0324afbaaa0ff7df5333e08 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 6 May 2016 21:36:39 -0700 Subject: [PATCH] specs-go/config.go: Make Process.Terminal omitempty It's an optional setting, and this change will fix the wordy: $ ocitools generate --template <(echo '{}') $ grep terminal config.json "terminal": false, Instead, config.json will not contain a 'terminal' entry at all. Signed-off-by: W. Trevor King --- specs-go/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs-go/config.go b/specs-go/config.go index fda11eec5..7b57c328f 100644 --- a/specs-go/config.go +++ b/specs-go/config.go @@ -32,7 +32,7 @@ type Spec struct { // Process contains information to start a specific application inside the container. type Process struct { // Terminal creates an interactive terminal for the container. - Terminal bool `json:"terminal"` + Terminal bool `json:"terminal,omitempty"` // User specifies user information for the process. User User `json:"user"` // Args specifies the binary and arguments for the application to execute.