mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 11:25:41 +03:00
consul/connect: copy bind address map if empty
This parameter is now supposed to be non-nil even if empty, and the Copy method should also maintain that invariant.
This commit is contained in:
@@ -1403,7 +1403,7 @@ func (p *ConsulGatewayProxy) Copy() *ConsulGatewayProxy {
|
||||
}
|
||||
|
||||
func (p *ConsulGatewayProxy) copyBindAddresses() map[string]*ConsulGatewayBindAddress {
|
||||
if len(p.EnvoyGatewayBindAddresses) == 0 {
|
||||
if p.EnvoyGatewayBindAddresses == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user