diff --git a/api/catalog.go b/api/catalog.go index 8f9c6567ac..0040ca6e7a 100644 --- a/api/catalog.go +++ b/api/catalog.go @@ -78,8 +78,8 @@ type CatalogRegistration struct { Check *AgentCheck Checks HealthChecks SkipNodeUpdate bool - Partition string `json:",omitempty"` - Locality *Locality + Partition string `json:",omitempty"` + Locality *Locality `json:",omitempty"` } type CatalogDeregistration struct { diff --git a/api/peering.go b/api/peering.go index 352d224fe6..dd7780f630 100644 --- a/api/peering.go +++ b/api/peering.go @@ -47,7 +47,7 @@ type PeeringRemoteInfo struct { Partition string // Datacenter is the remote peer's datacenter. Datacenter string - Locality *Locality + Locality *Locality `json:",omitempty"` } // Locality identifies where a given entity is running.