diff --git a/slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in b/slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in index 8d085826469fa844d9155dd759e489d2d8f31f7b..6627807adc9ecaa605a26a3822bd557162abd303 100644 --- a/slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in +++ b/slapos/recipe/erp5_bootstrap/template/erp5_bootstrap.in @@ -22,6 +22,9 @@ result = zope_connection.getresponse() if result.status == 204: # and (result.read() == "False"): + # Use a new connection + zope_connection = httplib.HTTPConnection(host) + # Create the expected ERP5 instance zope_connection.request( 'POST', '/manage_addProduct/ERP5/manage_addERP5Site', @@ -35,4 +38,8 @@ if result.status == 204: # and (result.read() == "False"): # Wait for the erp5 response, to prevent multiple requests # been done by the same script. result = zope_connection.getresponse() + + # Read result make sure the site really finished to + #created the ERP5 site. + result.read() print "ERP5 site created."