Fix issue with docker_module interpolation
Change-Id: I28e9d13b1a9a44cd31cf45ee270dc7493c425a80
diff --git a/opencontrail/collector.sls b/opencontrail/collector.sls
index 8930565..d5cac04 100644
--- a/opencontrail/collector.sls
+++ b/opencontrail/collector.sls
@@ -144,7 +144,7 @@
{%- else %}
{% set docker_module = 'docker' %}
{%- endif %}
-{%- if salt['{{ docker_module }}.exists'](collector.container_name) %}
+{%- if salt[docker_module + '.exists'](collector.container_name) %}
opencontrail_collector_dockerng_services:
dockerng_service.running:
- services: {{ collector.services }}
diff --git a/opencontrail/config.sls b/opencontrail/config.sls
index 53ad48e..d78cfed 100644
--- a/opencontrail/config.sls
+++ b/opencontrail/config.sls
@@ -258,7 +258,7 @@
{%- else %}
{% set docker_module = 'docker' %}
{%- endif %}
-{%- if salt['{{ docker_module }}.exists'](config.container_name) %}
+{%- if salt[docker_module + '.exists'](config.container_name) %}
opencontrail_config_dockerng_services:
dockerng_service.running:
- services: {{ config.services }}
diff --git a/opencontrail/control.sls b/opencontrail/control.sls
index 266ab5b..a3a8876 100644
--- a/opencontrail/control.sls
+++ b/opencontrail/control.sls
@@ -140,7 +140,7 @@
{%- else %}
{% set docker_module = 'docker' %}
{%- endif %}
-{%- if salt['{{ docker_module }}.exists'](control.container_name) %}
+{%- if salt[docker_module + '.exists'](control.container_name) %}
opencontrail_control_dockerng_services:
dockerng_service.running:
- services: {{ control.services }}
diff --git a/opencontrail/database.sls b/opencontrail/database.sls
index 9b2e06b..d51a918 100644
--- a/opencontrail/database.sls
+++ b/opencontrail/database.sls
@@ -290,7 +290,7 @@
{%- else %}
{% set docker_module = 'docker' %}
{%- endif %}
-{%- if salt['{{ docker_module }}.exists'](database.container_name) %}
+{%- if salt[docker_module + '.exists'](database.container_name) %}
opencontrail_database_dockerng_services:
dockerng_service.running:
- services:
diff --git a/opencontrail/web.sls b/opencontrail/web.sls
index fd99375..ae2092f 100644
--- a/opencontrail/web.sls
+++ b/opencontrail/web.sls
@@ -64,7 +64,7 @@
{%- else %}
{% set docker_module = 'docker' %}
{%- endif %}
-{%- if salt['{{ docker_module }}.exists'](web.container_name) %}
+{%- if salt[docker_module + '.exists'](web.container_name) %}
opencontrail_web_dockerng_services:
dockerng_service.running:
- services: