Browse Source

Salt: fix failure if no Redis modules defined

Creating the redis.conf file would crash if there weren't any modules
defined (such as on the monitoring server, which doesn't need any).
merge-requests/55/head
Deimos 6 years ago
parent
commit
66aec20b16
  1. 2
      salt/salt/redis/redis.conf.jinja2

2
salt/salt/redis/redis.conf.jinja2

@ -43,9 +43,11 @@
# loadmodule /path/to/my_module.so # loadmodule /path/to/my_module.so
# loadmodule /path/to/other_module.so # loadmodule /path/to/other_module.so
{% if accumulator is defined %}
{% for line in accumulator['redis_loadmodule_lines'] -%} {% for line in accumulator['redis_loadmodule_lines'] -%}
{{ line }} {{ line }}
{% endfor %} {% endfor %}
{% endif %}
################################## NETWORK ##################################### ################################## NETWORK #####################################

Loading…
Cancel
Save