[Erp5-report] r44072 luke - /erp5/trunk/utils/slapos.recipe.erp5/src/slapos/recipe/erp5/

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Mar 9 13:37:17 CET 2011


Author: luke
Date: Wed Mar  9 13:37:17 2011
New Revision: 44072

URL: http://svn.erp5.org?rev=44072&view=rev
Log:
 - reusability: allow to not pass required_path_list

Modified:
    erp5/trunk/utils/slapos.recipe.erp5/src/slapos/recipe/erp5/apache.py

Modified: erp5/trunk/utils/slapos.recipe.erp5/src/slapos/recipe/erp5/apache.py
URL: http://svn.erp5.org/erp5/trunk/utils/slapos.recipe.erp5/src/slapos/recipe/erp5/apache.py?rev=44072&r1=44071&r2=44072&view=diff
==============================================================================
--- erp5/trunk/utils/slapos.recipe.erp5/src/slapos/recipe/erp5/apache.py [utf8] (original)
+++ erp5/trunk/utils/slapos.recipe.erp5/src/slapos/recipe/erp5/apache.py [utf8] Wed Mar  9 13:37:17 2011
@@ -7,7 +7,7 @@ def runApache(args):
   conf = args[0]
   while True:
     ready = True
-    for f in conf['required_path_list']:
+    for f in conf.get('required_path_list', []):
       if not os.path.exists(f):
         print 'File %r does not exists, sleeping for %s' % (f, sleep)
         ready = False



More information about the Erp5-report mailing list