Browse Source

Merge pull request #41238 from thaJeztah/DefaultAddressPools_omit_empty

api/types: omit empty DefaultAddressPools
Sebastiaan van Stijn 5 năm trước cách đây
mục cha
commit
78e6ffd279
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      api/types/types.go

+ 2 - 2
api/types/types.go

@@ -210,8 +210,8 @@ type Info struct {
 	RuncCommit          Commit
 	InitCommit          Commit
 	SecurityOptions     []string
-	ProductLicense      string `json:",omitempty"`
-	DefaultAddressPools []NetworkAddressPool
+	ProductLicense      string               `json:",omitempty"`
+	DefaultAddressPools []NetworkAddressPool `json:",omitempty"`
 	Warnings            []string
 }