Commit 825f832b authored by Łukasz Nowak's avatar Łukasz Nowak

- do not set global variable if not needed


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44106 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b46c49b5
...@@ -109,9 +109,8 @@ class Recipe(BaseSlapRecipe): ...@@ -109,9 +109,8 @@ class Recipe(BaseSlapRecipe):
CONFIG['zodb_root_filename']) CONFIG['zodb_root_filename'])
url_list = [] url_list = []
if 'zope_amount' in self.parameter_dict: if 'zope_amount' in self.parameter_dict:
CONFIG['zope_amount'] = int(self.parameter_dict.get('zope_amount'))
self.installZeo() self.installZeo()
for i in xrange(1, CONFIG['zope_amount'] + 1): for i in xrange(1, int(self.parameter_dict.get('zope_amount')) + 1):
url_list.append(self.installZope(ip=self.getLocalIPv4Address(), url_list.append(self.installZope(ip=self.getLocalIPv4Address(),
port=12000 + i, name='zope_%s' % i, simple_zope=False)) port=12000 + i, name='zope_%s' % i, simple_zope=False))
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment