Commit 60e67974 authored by Rafael Monnerat's avatar Rafael Monnerat

Make erp5_bootstrap wait for manage_addERP5Site response

If multiple calls manage_addERP5Site are done in parallel by this script,
it cause conflict error during site creation.
parent c1d95031
......@@ -32,4 +32,7 @@ if result.status == 204: # and (result.read() == "False"):
'cmf_activity_sql_connection_string': mysql_url,
}),
headers=header_dict)
# Wait for the erp5 response, to prevent multiple requests
# been done by the same script.
result = zope_connection.getresponse()
print "ERP5 site created."
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