Commit bffa36ce authored by Łukasz Nowak's avatar Łukasz Nowak

- reusability: allow to not pass required_path_list


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44072 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cf5bb168
...@@ -7,7 +7,7 @@ def runApache(args): ...@@ -7,7 +7,7 @@ def runApache(args):
conf = args[0] conf = args[0]
while True: while True:
ready = True ready = True
for f in conf['required_path_list']: for f in conf.get('required_path_list', []):
if not os.path.exists(f): if not os.path.exists(f):
print 'File %r does not exists, sleeping for %s' % (f, sleep) print 'File %r does not exists, sleeping for %s' % (f, sleep)
ready = False ready = False
......
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