Skip to content

Commit 4f3c279

Browse files
committed
update NetConf.DNS's json tag to omitempty
Signed-off-by: cyclinder <[email protected]>
1 parent 6225376 commit 4f3c279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/types/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type NetConf struct {
6464
Type string `json:"type,omitempty"`
6565
Capabilities map[string]bool `json:"capabilities,omitempty"`
6666
IPAM IPAM `json:"ipam,omitempty"`
67-
DNS DNS `json:"dns"`
67+
DNS DNS `json:"dns,omitempty"`
6868

6969
RawPrevResult map[string]interface{} `json:"prevResult,omitempty"`
7070
PrevResult Result `json:"-"`

0 commit comments

Comments
 (0)