Page MenuHomeDevCentral

D2207.id.diff
No OneTemporary

D2207.id.diff

diff --git a/roles/paas-docker/salt/init.sls b/roles/paas-docker/salt/init.sls
--- a/roles/paas-docker/salt/init.sls
+++ b/roles/paas-docker/salt/init.sls
@@ -6,21 +6,11 @@
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
-{% from "map.jinja" import packages_prefixes with context %}
-
-# -------------------------------------------------------------
-# Does Salt use Python 2 or Python 3?
-# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-{% if grains['pythonversion'][0] == 2 %}
-{% set prefix = packages_prefixes['python2'] %}
-{% else %}
-{% set prefix = packages_prefixes['python3'] %}
-{% endif %}
-
# -------------------------------------------------------------
# Dependencies for Docker Salt minions
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-{{prefix}}docker-py:
- pkg.installed
+required_python_packages_for_docker_and_salt:
+ pip.installed:
+ - name: docker
+ - bin_env: /usr/bin/pip3

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 19, 19:39 (19 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2361319
Default Alt Text
D2207.id.diff (1 KB)

Event Timeline