Merge "Make sure cache_server_ip is not empty"

This commit is contained in:
Zuul 2022-01-12 17:43:27 +00:00 committed by Gerrit Code Review
commit c3d7cad1fc
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ CACHES = {
<% end -%>},
<% end -%>
'BACKEND': '<%= @cache_backend %>',
<% if @cache_server_ip %>
<% if @cache_server_ip and !(@cache_server_ip.empty?) %>
<% if @cache_server_ip_real.kind_of?(Array) %>
<% split = ":" + @cache_server_port + "','" %>
'LOCATION': [ <% @cache_server_ip_real.each do |ip| -%>'<%= ip -%>:<%= @cache_server_port -%>',<% end -%> ],