Merge pull request #52 from pcdummy/master

Use iteritems() instead of items().
This commit is contained in:
puneet kandhari 2015-07-13 08:05:56 -07:00
commit 843fddfcca
2 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,7 @@
{% from "php/map.jinja" import php with context %}
{% if not 'ng' in salt['pillar.get']('php', {}) %}
{% if grains['os_family']=="Debian" %}
{% set use_ppa = salt['pillar.get']('php:use_ppa', none) %}
{% if use_ppa is not none %}
@ -18,3 +20,5 @@ php54:
php:
pkg.installed:
- name: {{ php.php_pkg }}
{% endif %}

View File

@ -9,7 +9,7 @@
{% set pool_states = [] %}
{% for pool, config in php.fpm.pools.items() %}
{% for pool, config in php.fpm.pools.iteritems() %}
{% set state = 'php_fpm_pool_conf_' ~ loop.index0 %}
{% set fpath = path_join(pool, php.lookup.fpm.pools) %}
@ -29,6 +29,3 @@
{% do pool_states.append(state) %}
{% endfor %}