Commit fd60c32e authored by Boxiang Sun's avatar Boxiang Sun Committed by Rafael Monnerat

Remove the leading space in the XML in SubscriptionCondition_renderKVMClusterParameter

The leading spaces in the XML will lead the XML to become invalid

/reviewed-on nexedi/slapos.core!153
parent 2048688b
......@@ -32,8 +32,7 @@ for i in range(amount):
else:
json_parameter["kvm-partition-dict"]["KVM" + str(i)] = KVM0
xml_parameter = """
<?xml version="1.0" encoding="utf-8"?>
xml_parameter = """<?xml version="1.0" encoding="utf-8"?>
<instance>
<parameter id="_">%s</parameter>
</instance>""" % json.dumps(json_parameter, indent=2)
......
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