Skip to content

Commit 7e58331

Browse files
committed
Remove annotations from Resources
This results in different JSON than the older version: Before commit fd4995c: "cgroups": { ... "devices": [ ... After: "cgroups": { ... "Resources": { "devices": [ This breaks backward compatibility for runc. Fixes: fd4995c ("Add omitempty JSON attribute for some fields") Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent fc3510e commit 7e58331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type Cgroup struct {
2929
ScopePrefix string `json:"scope_prefix,omitempty"`
3030

3131
// Resources contains various cgroups settings to apply.
32-
*Resources `json:"Resources,omitempty"`
32+
*Resources
3333

3434
// Systemd tells if systemd should be used to manage cgroups.
3535
Systemd bool `json:"Systemd,omitempty"`

0 commit comments

Comments
 (0)