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 WORKERS = properties['workers'] or 2 %}
{% set WORKERS = properties['workers'] if properties and properties['workers'] else 2 %}
resources:
- name: redis-master

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

Loading…
Cancel
Save