mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Check for nil, not unspecified
This commit is contained in:
parent
28b9ebed47
commit
950bc8401b
@ -624,7 +624,7 @@ func (lb *LoadBalancer) CreateTCPLoadBalancer(name, region string, externalIP ne
|
||||
PoolID: pool.ID,
|
||||
Persistence: persistence,
|
||||
}
|
||||
if !externalIP.IsUnspecified() {
|
||||
if externalIP != nil {
|
||||
createOpts.Address = externalIP.String()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user