Make the test for the 'docker_opts' grain more robust.

Fixes #2982
This commit is contained in:
Joe Beda 2014-12-16 14:26:36 -08:00
parent 56ee66831b
commit 911a437c1b

View File

@ -1,5 +1,5 @@
DOCKER_OPTS=""
{% if grains.docker_opts %}
{% if grains.docker_opts is defined and grains.docker_opts %}
DOCKER_OPTS="${DOCKER_OPTS} {{grains.docker_opts}}"
{% endif %}
DOCKER_OPTS="${DOCKER_OPTS} --bridge cbr0 --iptables=false --ip-masq=false -r=false"