Skip to content

Commit

Permalink
config.go add omitempty to device.Major and device.Minor
Browse files Browse the repository at this point in the history
Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
  • Loading branch information
zhouhao committed Sep 1, 2017
1 parent f5f1390 commit cb01bcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ type LinuxDevice struct {
// Device type, block, char, etc.
Type string `json:"type"`
// Major is the device's major number.
Major int64 `json:"major"`
Major *int64 `json:"major,omitempty"`
// Minor is the device's minor number.
Minor int64 `json:"minor"`
Minor *int64 `json:"minor,omitempty"`
// FileMode permission bits for the device.
FileMode *os.FileMode `json:"fileMode,omitempty"`
// UID of the device.
Expand Down

0 comments on commit cb01bcd

Please sign in to comment.