From 0385663637a0f17ba217a32cd10b4df153aadcf3 Mon Sep 17 00:00:00 2001 From: Rowcliffe Browne Date: Fri, 23 Oct 2015 15:34:58 +0800 Subject: [PATCH] use False as default, and test boolean, rather than none --- php/ng/installed.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/ng/installed.jinja b/php/ng/installed.jinja index 9c28eaf..d33e85d 100644 --- a/php/ng/installed.jinja +++ b/php/ng/installed.jinja @@ -21,8 +21,8 @@ {% endif %} {% if grains['os_family']=="Debian" and (state == 'cli' or state == 'fpm' or state == 'php') %} -{% set use_ppa = salt['pillar.get']('php:use_ppa', none) %} -{% if use_ppa is not none %} +{% set use_ppa = salt['pillar.get']('php:use_ppa', False) %} +{% if use_ppa %} {% set ppa_name = salt['pillar.get']('php:ppa_name', 'ondrej/php5') %}