mirror of
https://github.com/containers/gvisor-tap-vsock.git
synced 2025-09-26 21:01:42 +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 {
|
||||
Name string `yaml:"name,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