Skip to content

Commit 74780f0

Browse files
committed
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.
1 parent 37544ca commit 74780f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nomad/structs/services.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ func (p *ConsulGatewayProxy) Copy() *ConsulGatewayProxy {
14031403
}
14041404

14051405
func (p *ConsulGatewayProxy) copyBindAddresses() map[string]*ConsulGatewayBindAddress {
1406-
if len(p.EnvoyGatewayBindAddresses) == 0 {
1406+
if p.EnvoyGatewayBindAddresses == nil {
14071407
return nil
14081408
}
14091409

0 commit comments

Comments
 (0)