Skip to content

Commit

Permalink
specs-go: tag device 'NameShort' with 'omitempty'.
Browse files Browse the repository at this point in the history
The existing code does not use device short names, so maybe they
could/should be removed altogether. Ditto for 'Spec.KindShort'...

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
  • Loading branch information
klihub committed Nov 28, 2021
1 parent be35b1f commit 7f4792f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Spec struct {
// Device is a "Device" a container runtime can add to a container
type Device struct {
Name string `json:"name"`
NameShort []string `json:"nameShort"`
NameShort []string `json:"nameShort,omitempty"`
ContainerEdits ContainerEdits `json:"containerEdits"`
}

Expand Down

0 comments on commit 7f4792f

Please sign in to comment.