fix iteritems for python3

This commit is contained in:
Niels Abspoel 2018-03-10 17:06:25 +01:00
parent 0176070904
commit 5a3f40c7e1
4 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
{% from "php/ng/ini.jinja" import php_ini %}
{% set settings = php.ini.defaults %}
{% for key, value in php.cli.ini.settings.iteritems() %}
{% for key, value in php.cli.ini.settings.items() %}
{% if settings[key] is defined %}
{% do settings[key].update(value) %}
{% else %}

View File

@ -3,7 +3,7 @@
{% from "php/ng/ini.jinja" import php_ini %}
{% set ini_settings = php.ini.defaults %}
{% for key, value in php.fpm.config.ini.settings.iteritems() %}
{% for key, value in php.fpm.config.ini.settings.items() %}
{% if ini_settings[key] is defined %}
{% do ini_settings[key].update(value) %}
{% else %}

View File

@ -9,9 +9,9 @@
{% set pool_states = [] %}
{% for pool, config in php.fpm.pools.iteritems() %}
{% for pool, config in php.fpm.pools.items() %}
{% if pool == 'defaults' %}{% continue %}{% endif %}
{% for pkey, pvalues in config.get('settings', {}).iteritems() %}
{% for pkey, pvalues in config.get('settings', {}).items() %}
{% set pool_defaults = php.fpm.pools.get('defaults', {}).copy() %}
{% do pool_defaults.update(pvalues) %}
{% do pvalues.update(pool_defaults) %}

View File

@ -3,7 +3,7 @@
{% from "php/ng/ini.jinja" import php_ini %}
{% set settings = php.xcache.ini.defaults %}
{% for key, value in php.xcache.ini.settings.iteritems() %}
{% for key, value in php.xcache.ini.settings.items() %}
{% if settings[key] is defined %}
{% do settings[key].update(value) %}
{% else %}