Commit bb1a7285 authored by Boxiang Sun's avatar Boxiang Sun

slapos_subscription_request: fixup! Remove the leading space in the XML

The leading spaces in the XML will lead the XML to become invalid
parent 1eea3667
...@@ -32,8 +32,7 @@ for i in range(amount): ...@@ -32,8 +32,7 @@ for i in range(amount):
else: else:
json_parameter["kvm-partition-dict"]["KVM" + str(i)] = KVM0 json_parameter["kvm-partition-dict"]["KVM" + str(i)] = KVM0
xml_parameter = """ xml_parameter = """<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<instance> <instance>
<parameter id="_">%s</parameter> <parameter id="_">%s</parameter>
</instance>""" % json.dumps(json_parameter, indent=2) </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