From bbef19643e69bcd5687bdb7b469d3610e5a7ca54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20de=20Saint=20Martin?= <cedric.dsm@tiolive.com> Date: Wed, 19 Dec 2012 16:25:54 +0100 Subject: [PATCH] Don't use [] as default value for parameter --- slapos/recipe/apache_frontend/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/slapos/recipe/apache_frontend/__init__.py b/slapos/recipe/apache_frontend/__init__.py index 7ef776136..bd43eb43e 100644 --- a/slapos/recipe/apache_frontend/__init__.py +++ b/slapos/recipe/apache_frontend/__init__.py @@ -480,10 +480,14 @@ class Recipe(BaseSlapRecipe): def installFrontendApache(self, ip_list, key, certificate, name, port=4443, plain_http_port=8080, - rewrite_rule_list=[], - rewrite_rule_zope_list=[], + rewrite_rule_list=None, + rewrite_rule_zope_list=None, rewrite_rule_zope_path_list=None, access_control_string=None): + if rewrite_rule_list is None: + rewrite_rule_list = [] + if rewrite_rule_zope_list is None: + rewrite_rule_zope_list = [] if rewrite_rule_zope_path_list is None: rewrite_rule_zope_path_list = [] -- 2.30.9