Check for nil, not unspecified

pull/6/head
Joshua Griffiths 2015-08-05 18:28:25 +01:00
parent 28b9ebed47
commit 950bc8401b
1 changed files with 1 additions and 1 deletions

View File

@ -624,7 +624,7 @@ func (lb *LoadBalancer) CreateTCPLoadBalancer(name, region string, externalIP ne
PoolID: pool.ID, PoolID: pool.ID,
Persistence: persistence, Persistence: persistence,
} }
if !externalIP.IsUnspecified() { if externalIP != nil {
createOpts.Address = externalIP.String() createOpts.Address = externalIP.String()
} }