mirror of https://github.com/status-im/consul.git
api: ensure empty locality field is not transmitted to Consul (#17137)
This commit is contained in:
parent
a87115c598
commit
c501da01eb
|
@ -79,7 +79,7 @@ type CatalogRegistration struct {
|
||||||
Checks HealthChecks
|
Checks HealthChecks
|
||||||
SkipNodeUpdate bool
|
SkipNodeUpdate bool
|
||||||
Partition string `json:",omitempty"`
|
Partition string `json:",omitempty"`
|
||||||
Locality *Locality
|
Locality *Locality `json:",omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CatalogDeregistration struct {
|
type CatalogDeregistration struct {
|
||||||
|
|
|
@ -47,7 +47,7 @@ type PeeringRemoteInfo struct {
|
||||||
Partition string
|
Partition string
|
||||||
// Datacenter is the remote peer's datacenter.
|
// Datacenter is the remote peer's datacenter.
|
||||||
Datacenter string
|
Datacenter string
|
||||||
Locality *Locality
|
Locality *Locality `json:",omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Locality identifies where a given entity is running.
|
// Locality identifies where a given entity is running.
|
||||||
|
|
Loading…
Reference in New Issue