From 3f4a7667f79fcb3ce532e6d519a7d7c76f02da91 Mon Sep 17 00:00:00 2001 From: Jonathan Ballet Date: Wed, 25 Mar 2015 14:47:55 +0100 Subject: [PATCH] Jinja's `reverse` is a filter, use it accordingly --- apache/vhosts/proxy.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache/vhosts/proxy.tmpl b/apache/vhosts/proxy.tmpl index 356b115..559ea92 100644 --- a/apache/vhosts/proxy.tmpl +++ b/apache/vhosts/proxy.tmpl @@ -35,7 +35,7 @@ {% if site.get('CustomLog') != False %}CustomLog {{ vals.CustomLog }} {{ vals.LogFormat }}{% endif %} ProxyPreserveHost {{ vals.ProxyPreserveHost }} - {% for proxy, proxyargs in reverse(vals.ProxyRoute.items()) %} + {% for proxy, proxyargs in vals.ProxyRoute.items()|reverse %} {% set proxyvals = { 'ProxyPassSource': proxyargs.get('ProxyPassSource', '/'), 'ProxyPassTarget': proxyargs.get('ProxyPassTarget', 'https://{0}'.format(sitename)),