Page MenuHomeDevCentral

D2323.id5853.diff
No OneTemporary

D2323.id5853.diff

diff --git a/roles/paas-docker/containers/init.sls b/roles/paas-docker/containers/init.sls
--- a/roles/paas-docker/containers/init.sls
+++ b/roles/paas-docker/containers/init.sls
@@ -8,7 +8,11 @@
{% set services = salt['node.filter_by_name']('docker_containers') %}
+{% if services %}
+
include:
{% for service in services %}
- .{{ service }}
{% endfor %}
+
+{% endif %}
diff --git a/roles/paas-docker/docker/networks.sls b/roles/paas-docker/docker/networks.sls
--- a/roles/paas-docker/docker/networks.sls
+++ b/roles/paas-docker/docker/networks.sls
@@ -6,7 +6,7 @@
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
-{% set networks = pillar['docker_networks'][grains['id']] %}
+{% set networks = salt['pillar.get']("docker_networks:" + grains['id'], {}) %}
# -------------------------------------------------------------
# Bridge networks

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 18:37 (22 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2249653
Default Alt Text
D2323.id5853.diff (940 B)

Event Timeline