Fixing jinja template for redis to allow for no properties.

Previously it assumed properties would exist.
pull/51/head
Brendan Melville 9 years ago
parent c7d35e3a7d
commit c7af9ab145

@ -1,5 +1,5 @@
{% set REDIS_PORT = 6379 %} {% set REDIS_PORT = 6379 %}
{% set WORKERS = properties['workers'] or 2 %} {% set WORKERS = properties['workers'] if properties and properties['workers'] else 2 %}
resources: resources:
- name: redis-master - name: redis-master

@ -4,4 +4,3 @@ imports:
resources: resources:
- name: redis - name: redis
type: redis.jinja type: redis.jinja
properties: null

Loading…
Cancel
Save