Skip to content

Commit 6f7b71c

Browse files
authored
Merge pull request #1306 from askervin/5eN_mpol_nodes_allow_empty
config-linux: allow empty strings in memory policy nodes field
2 parents cca70e0 + c668b01 commit 6f7b71c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

specs-go/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ type LinuxMemoryPolicy struct {
899899

900900
// Nodes representing the nodemask for the set_mempolicy syscall in comma separated ranges format.
901901
// Format: "<node0>-<node1>,<node2>,<node3>-<node4>,..."
902-
Nodes string `json:"nodes"`
902+
Nodes string `json:"nodes,omitempty"`
903903

904904
// Flags for the set_mempolicy syscall.
905905
Flags []MemoryPolicyFlagType `json:"flags,omitempty"`

0 commit comments

Comments
 (0)