mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 17:46:57 +02:00
Earlier return
This commit is contained in:
parent
d5c7f23171
commit
a70d5d014e
@ -221,8 +221,10 @@ func (vs *f5VirtualServerSource) filterByAnnotations(virtualServers []*f5.Virtua
|
||||
}
|
||||
|
||||
func isVirtualServerReady(vs *f5.VirtualServer) bool {
|
||||
normalizedStatus := strings.ToLower(vs.Status.Status)
|
||||
normalizedAddress := strings.ToLower(vs.Status.VSAddress)
|
||||
if strings.ToLower(vs.Status.Status) != "ok" {
|
||||
return false
|
||||
}
|
||||
|
||||
return normalizedStatus == "ok" && (normalizedAddress != "none" && normalizedAddress != "")
|
||||
normalizedAddress := strings.ToLower(vs.Status.VSAddress)
|
||||
return normalizedAddress != "none" && normalizedAddress != ""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user