Using update instead of set in Jinja2
This commit is contained in:
parent
2c655333da
commit
fb76c4f34a
1 changed files with 2 additions and 2 deletions
|
@ -2,9 +2,9 @@
|
|||
|
||||
{% if grains['travis'] == True and grains['kernel'] == 'Linux' %}
|
||||
{% if "python2" in grains['pip'] %}
|
||||
{% set python_env['pip_bin_env'] = "/opt/python/3.5.2/bin/pip3" %}
|
||||
{% python_env.update({ 'pip_bin_env': '/opt/python/3.5.2/bin/pip3'}) %}
|
||||
{% else %}
|
||||
{% set python_env['pip_bin_env'] = grains['pip'] %}
|
||||
{% python_env.update({'pip_bin_env': grains['pip']}) %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue