use False as default, and test boolean, rather than none
This commit is contained in:
parent
9a54fcf5c1
commit
0385663637
@ -21,8 +21,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if grains['os_family']=="Debian" and (state == 'cli' or state == 'fpm' or state == 'php') %}
|
{% if grains['os_family']=="Debian" and (state == 'cli' or state == 'fpm' or state == 'php') %}
|
||||||
{% set use_ppa = salt['pillar.get']('php:use_ppa', none) %}
|
{% set use_ppa = salt['pillar.get']('php:use_ppa', False) %}
|
||||||
{% if use_ppa is not none %}
|
{% if use_ppa %}
|
||||||
|
|
||||||
{% set ppa_name = salt['pillar.get']('php:ppa_name', 'ondrej/php5') %}
|
{% set ppa_name = salt['pillar.get']('php:ppa_name', 'ondrej/php5') %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user