From bb4cca78cdb0908c7a9651eca3249ccffc5a7a6f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 6 Apr 2017 23:13:22 -0700 Subject: [PATCH] specs-go/config: Add omitempty to LinuxSyscall.Args It used to have this, but the omitempty was dropped in 652323cd (improve seccomp format to be more expressive, 2017-01-13, #657). However, the docs that landed in 3ca5c6c5 (config-linux.md: fix seccomp, 2017-03-02, #706) list the property as optional, and if it is optional, we can leave it unset instead of serializing an empty array. 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 3c744ed86..70d708d23 100644 --- a/specs-go/config.go +++ b/specs-go/config.go @@ -551,7 +551,7 @@ type LinuxSeccompArg struct { type LinuxSyscall struct { Names []string `json:"names"` Action LinuxSeccompAction `json:"action"` - Args []LinuxSeccompArg `json:"args"` + Args []LinuxSeccompArg `json:"args,omitempty"` } // LinuxIntelRdt has container runtime resource constraints