Skip to content

Commit

Permalink
Remove omitempty json tag from dns/dhcp struct (infobloxopen#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay8 authored Feb 23, 2024
1 parent 26886f6 commit fe8efc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ type Dns struct {
Comment string `json:"comment,omitempty"`
HostName string `json:"host_name,omitempty"`
IPv4Address string `json:"ipv4addr,omitempty"`
EnableDns bool `json:"enable_dns,omitempty"`
EnableDns bool `json:"enable_dns"`
}

func (d Dns) ObjectType() string {
Expand All @@ -492,7 +492,7 @@ type Dhcp struct {
Comment string `json:"comment,omitempty"`
HostName string `json:"host_name,omitempty"`
IPv4Address string `json:"ipv4addr,omitempty"`
EnableDns bool `json:"enable_dns,omitempty"`
EnableDns bool `json:"enable_dns"`
}

func (d Dhcp) ObjectType() string {
Expand Down

0 comments on commit fe8efc1

Please sign in to comment.