fix make verify-all failures

This commit is contained in:
Zenara Daley 2018-04-12 14:14:43 -04:00
parent 4b76ad14bb
commit 9198e2c14b
3 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

View file

@ -645,7 +645,7 @@ 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" &&

View file

@ -730,7 +730,7 @@ func TestBuildUpstreamName(t *testing.T) {
expected := defaultBackend
if tc.Sticky {
if !tc.DynamicConfigurationEnabled{
if !tc.DynamicConfigurationEnabled {
expected = fmt.Sprintf("sticky-" + expected)
}