Commit 13765da9 by Rafael Monnerat

slapos_jio: Fix default values for SoftwareRelease_requestHostingSubscription

1 parent 8732374f
import json
portal = context.getPortalObject()
if shared == "true":
if shared == ["true", "1", 1]:
shared = True
if shared in ["false", "", None]:
if shared in ["false", "", 0, "0", None]:
shared = False
if not title:
......
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>title, text_content="", software_type=None, shared=False, computer_guid=None, sla_xml=None</string> </value>
<value> <string>title, text_content="", software_type=None, shared=False, computer_guid=None, sla_xml=""</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!