Commit 2e8290ca authored by Romain Courteaud's avatar Romain Courteaud

Hardcode default parameters.

This is a workaround until a better implementation of software product is finished.
parent 5a4a35ed
......@@ -73,6 +73,20 @@ except KeyError:\n
if is_slave not in [True, False]:\n
raise ValueError, "shared should be a boolean"\n
\n
empty_parameter = """<?xml version="1.0" encoding="utf-8"?>\n
<instance>\n
</instance>"""\n
\n
# XXX Hardcode default parameter\n
if instance_xml == empty_parameter:\n
if software_release_url_string == "http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/heads/erp5-frontend:/software/erp5/software.cfg": \n
instance_xml = """<?xml version="1.0" encoding="utf-8"?>\n
<instance>\n
<parameter id="frontend-instance-guid">SOFTINST-9238</parameter>\n
<parameter id="frontend-software-url">http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg</parameter>\n
</instance>\n
"""\n
\n
hosting_subscription_portal_type = "Hosting Subscription"\n
\n
tag = "%s_%s_inProgress" % (person.getUid(), \n
......
759
\ No newline at end of file
760
\ No newline at end of file
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