Browse Source

Merge "Make sure cache_server_ip is not empty"

changes/31/828531/1
Zuul 4 months ago committed by Gerrit Code Review
parent
commit
c3d7cad1fc
  1. 2
      templates/local_settings.py.erb

2
templates/local_settings.py.erb

@ -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 -%> ],

Loading…
Cancel
Save