fix make verify-all failures
This commit is contained in:
parent
4b76ad14bb
commit
9198e2c14b
3 changed files with 6 additions and 6 deletions
|
|
@ -645,14 +645,14 @@ func buildUpstreamName(host string, b interface{}, loc interface{}, dynamicConfi
|
|||
|
||||
upstreamName := location.Backend
|
||||
|
||||
if !dynamicConfigurationEnabled{
|
||||
if !dynamicConfigurationEnabled {
|
||||
for _, backend := range backends {
|
||||
if backend.Name == location.Backend {
|
||||
if backend.SessionAffinity.AffinityType == "cookie" &&
|
||||
isSticky(host, location, backend.SessionAffinity.CookieSessionAffinity.Locations) {
|
||||
upstreamName = fmt.Sprintf("sticky-%v", upstreamName)
|
||||
}
|
||||
|
||||
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue