mirror of
https://github.com/containers/gvisor-tap-vsock.git
synced 2025-09-29 06:02:34 +08:00
Omit empty regexp in REST API results
This will avoid having `Regexp: null` when using the REST API. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
@@ -79,5 +79,5 @@ type Zone struct {
|
|||||||
type Record struct {
|
type Record struct {
|
||||||
Name string `yaml:"name,omitempty"`
|
Name string `yaml:"name,omitempty"`
|
||||||
IP net.IP `yaml:"ip,omitempty"`
|
IP net.IP `yaml:"ip,omitempty"`
|
||||||
Regexp *regexp.Regexp `yaml:"regexp,omitempty"`
|
Regexp *regexp.Regexp `json:",omitempty" yaml:"regexp,omitempty"`
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user